Skip to main content
GET
/
fleets
/
{fleetId}
/
tools
JavaScript
import Cerca from '@cerca-dev/sdk';

const client = new Cerca({
  apiKey: process.env['CERCA_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const toolSource of client.tools.list('fleet_abc123')) {
  console.log(toolSource);
}
{
  "cursor": "<string>",
  "hasMore": true,
  "sources": [
    {
      "auth": {
        "kind": "none"
      },
      "createdAt": "<string>",
      "enabled": true,
      "fleetId": "<string>",
      "id": "<string>",
      "namespace": "<string>",
      "updatedAt": "<string>",
      "version": 123,
      "tools": [
        {
          "name": "search",
          "description": "Search documents",
          "inputSchema": {
            "type": "object"
          },
          "endpoint": {
            "method": "GET",
            "url": "https://docs.example.com/search"
          }
        }
      ],
      "execution": {
        "timeoutMs": 10000,
        "maxAttempts": 3,
        "retryMode": "safe_only"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cerca.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

fleetId
string
required
Minimum string length: 1
Example:

"fleet_abc123"

Query Parameters

cursor
string

Opaque pagination cursor returned by a previous request.

Example:

"cursor_abc123"

limit
string

Maximum number of items to return. Defaults to 20 and preserves parseInt semantics.

Example:

"20"

Response

Tool sources configured for the fleet.

cursor
string | null
required
hasMore
boolean
required
sources
object[]
required