ADK for TypeScript: API Reference
    Preparing search index...

    Class LoadMcpResourceTool

    A tool that loads MCP server resources and adds them to the session.

    This mirrors the in-repo LoadArtifactsTool idiom: the model calls load_mcp_resource with the names of the resources it wants, and on the next turn processLlmRequest reads those resources over the MCP session and appends their contents (text and base64-encoded binary) to the request context.

    Hierarchy (View Summary)

    Constructors

    Properties

    "[BASE_TOOL_SIGNATURE_SYMBOL]": true

    A unique symbol to identify ADK base tool class.

    description: string
    isLongRunning: boolean
    name: string

    Accessors

    Methods

    • Gets the OpenAPI specification of this tool in the form of a FunctionDeclaration.

      NOTE

      • Required if subclass uses the default implementation of processLlmRequest to add function declaration to LLM request.
      • Otherwise, can be skipped, e.g. for a built-in GoogleSearch tool for Gemini.

      Returns FunctionDeclaration

      The FunctionDeclaration of this tool, or undefined if it doesn't need to be added to LlmRequest.config.