Theia API Documentation v1.68.0
    Preparing search index...

    Context passed to tool handlers during invocation by language models. Language models should pass this context when invoking tool handlers to enable proper tracking and correlation of tool calls.

    interface ToolInvocationContext {
        cancellationToken?: CancellationToken;
        toolCallId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cancellationToken?: CancellationToken

    Optional cancellation token to support cancelling tool execution.

    toolCallId?: string

    The unique identifier for this specific tool call invocation. This ID is assigned by the language model and used to correlate the tool call with its response.