Interface CallableTool

CallableTool is an invokable tool that can be executed with external application (e.g., via Model Context Protocol) or local functions with function calling.

interface CallableTool {
    callTool(functionCalls: FunctionCall[]): Promise<Part[]>;
    tool(): Promise<Tool>;
}

Methods

Methods

  • Executes the callable tool with the given function call arguments and returns the response parts from the tool execution.

    Parameters

    Returns Promise<Part[]>