# ReadonlyToolContext

interface ReadonlyToolContext

A readonly view of the tool context.

#### Inheritors

ToolContext

## Properties

context
Link copied to clipboard
abstract val context: ReadonlyContext

The readonly invocation context.

eventId
Link copied to clipboard
abstract val eventId: String?

The unique ID of the event that triggered this tool call.

functionCallId
Link copied to clipboard
abstract val functionCallId: String?

The unique ID of the function call.

## Functions

listArtifacts
Link copied to clipboard
abstract suspend fun listArtifacts(): List<String>

Lists the artifacts available in the current session.

loadArtifact
Link copied to clipboard
abstract suspend fun loadArtifact(name: String, version: Int? = null): Part?

Loads a specific artifact from the current session.