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

    Context object passed to tool handlers when invoked within a chat session. Extends ToolInvocationContext to include chat-specific information.

    interface ChatToolContext {
        cancellationToken?: CancellationToken;
        request: MutableChatRequestModel;
        response: MutableChatResponseModel;
        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.