dots.v2.actionGateway.toolbelts.byName().tools.add.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.actionGateway.toolbelts.byName(name).tools.add.post(body: Toolbelt_tools, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Toolbelt_update_response>

Description

Adds the listed tools and returns the toolbelt. When membership changes, this creates a new version that keeps the display name and description. Tools already in the toolbelt are left as they are, so a request that adds nothing new returns the current version unchanged. Returns 400 when a tool is not an active catalog tool, when a pin differs from the tool’s current released version or from the version the toolbelt already holds, or when the toolbelt would exceed 500 tools. Returns 404 for an unknown or deleted toolbelt.

Parameters

Path Parameters

name string required

Example: search-toolbelt

Toolbelt name, from the path.

Request Body

tools array of strings required

Example: ["exa_web_search"]

Tool slugs (<provider>_<name>) to add or remove, each optionally pinned as <tool_slug>@<version>. At least one is required. When adding, a pin must equal the tool's current released version.

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.v2.actionGateway.toolbelts
    .byName("search-toolbelt").tools.add.post({
    tools: [
        "jira_create_issue",
    ],
});

Response Example

Show Response Example
{
  "toolbelt": {
    "name": "search-toolbelt",
    "version": "2",
    "display_name": "Search Tools",
    "description": "Tools for searching and fetching public web pages.",
    "tools": [
      "exa_web_fetch@1",
      "exa_web_search@1",
      "jira_create_issue@1"
    ],
    "status": "active",
    "reference": "search-toolbelt@2",
    "reference_latest": "search-toolbelt",
    "tool_count": 3,
    "created_at": "2026-06-11T12:00:00Z",
    "updated_at": "2026-06-12T09:30:00Z"
  }
}

More Information

See /v2/action-gateway/toolbelts/{name}/tools/add 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.