dots.tools.get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.tools.get(requestConfiguration?: RequestConfiguration<ToolsRequestBuilderGetQueryParameters>): Promise<undefined | List_session_tools_response>

Description

Lists the catalog tools that a session can call, ordered by name. The list applies the session’s tools selection and omits tools that its policy always denies.

Each page includes an ETag header. Send it in If-None-Match to receive 304 Not Modified while the page is unchanged.

Parameters

Query Parameters

pageSize integer optional

Example: 20

The number of tools returned per page, from 1 to 100. Defaults to 20 when omitted. Other values are rejected with 400.

Default: 20

Min: 1

Max: 100

pageToken string optional

Example: eyJ2IjoxLCJhZnRlciI6ImV4YV93ZWJfc2VhcmNoIiwiZnAiOiI5YzFlNWI3YTNkMmY0ZTYwIn0

The next_page_token from the previous response. A token is only valid for the session that received it.

Headers

X-Session-Id string required

Example: 2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b

The session to act in: the UUID at the end of the session's sessionUrn and mcpUrl. The session must belong to the authenticated user and team.

If-None-Match string optional

Example: "3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c"

The ETag from a previous response for the same page. If the page is unchanged, the response is 304 Not Modified with no body.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.tools.get({
    headers: {
        "X-Session-Id": "2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
    },
});

Response Example

Show Response Example
{
  "version": "v1",
  "tools": [
    {
      "name": "exa_web_search",
      "title": "Web Search",
      "description": "Search the public web and return ranked results with titles and URLs.",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "max_results": {
            "type": "integer"
          }
        }
      },
      "annotations": {
        "title": "Web Search",
        "readOnlyHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "version": "1",
        "parallelizable": true,
        "streaming_safe": false
      },
      "version": "1",
      "parallelizable": true,
      "streamingSafe": false
    }
  ],
  "next_page_token": "eyJ2IjoxLCJhZnRlciI6ImV4YV93ZWJfc2VhcmNoIiwiZnAiOiI5YzFlNWI3YTNkMmY0ZTYwIn0"
}

More Information

See /tools in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.