dots.tools.search.post()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.tools.search.post(body: Search_tools_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Data_plane_search_tools_response>

Description

Finds the catalog tools that fit one or more use cases. This is the REST form of the action_search MCP tool. Each query is searched independently and returns its own result group, so you can see which tools serve which goal. Results include each tool’s inputSchema, so you can call a tool with POST /tools/invoke without another lookup.

Results include only tools that the session can call. If the session policy requires approval for action_search, the response is a failed result with _meta.status set to requires_approval.

Parameters

Headers

X-Session-Id string optional

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

The session to act in: the UUID at the end of the session's sessionUrn and mcpUrl. For a pinned endpoint version, use the session UUID at the end of its mcp_url, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or X-Endpoint-Id, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.

X-Endpoint-Id string optional

Example: 1b4d4e0f-9a7c-4d5b-8f3c-2a6e6e8f0a13

The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in X-Action-Gateway-Endpoint-Version. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or X-Session-Id, not both. A malformed value or more than one value returns 400.

X-Actor-Id string optional

Example: alice

The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's actor_id. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."

Request Body

queries array of objects required

Independent search queries. Split separate actions into separate queries. Each query is searched on its own and gets its own result group.

Show child properties
useCase string required

Example: search the public web for current information

A normalized English description of one complete use case: the action and the intended outcome, including any app the user named. Put personal identifiers in known_fields instead. Up to 512 bytes and 32 search terms, with at least one letter or digit.

knownFields string optional

Example: project:checkout

Known workflow inputs as one string of comma-separated key:value pairs, such as identifiers or settings. Used as context, not for keyword matching.

providers array of strings optional

Example: ["exa"]

Restricts every query to these providers.

tags array of strings optional

Example: ["web-search"]

Restricts every query to tools with these tags.

limit integer optional

Example: 3

The maximum number of tools returned per query. Values above 50 are capped at 50.

Default: 10

Min: 1

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.search.post({
    queries: [
        {
            useCase: "search the public web for current information",
        },
    ],
    limit: 3,
});

Response Example

Show Response Example
{
  "status": "succeeded",
  "output": {
    "results": [
      {
        "index": 1,
        "use_case": "search the public web for current information",
        "results": [
          {
            "name": "exa_web_search",
            "version": "1",
            "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"
                }
              }
            },
            "score": 0.92
          }
        ]
      }
    ]
  },
  "call_id": "call_8b7c6d5e-4f3a-4b2c-9d1e-0f9a8b7c6d5e"
}

More Information

See /tools/search 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.