GET
/
{resourceSlug}
/
tool
/
{toolId}
.json
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/tool/{toolId}.json
{
  "_id": "<string>",
  "orgId": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "type": "function",
  "asdf": "<string>",
  "retriever_type": "raw",
  "retriever_config": {
    "k": 123,
    "metadata_field_info": [
      {
        "name": "<string>",
        "description": "<string>",
        "type": "string"
      }
    ]
  },
  "datasourceId": "<string>",
  "state": "pending",
  "data": {
    "runtime": "<string>",
    "builtin": true,
    "name": "<string>",
    "description": "<string>",
    "apiKey": "<string>",
    "environmentVariables": {},
    "parameters": {
      "properties": {},
      "required": [
        "<string>"
      ]
    },
    "code": "<string>",
    "requirements": "<string>",
    "openAPIMatchKey": "<string>"
  },
  "icon": {
    "id": {},
    "filename": "<string>"
  },
  "hidden": true,
  "functionId": "<string>",
  "revisionId": "<string>",
  "functionLogs": "<string>"
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user

toolId
string
required

The url parameter with the Id of the tool to get

Response

200
tool.json

JSON object containing found tool using the toolId and the teamId

Represents a tool within the system, including its configuration, state, and associated retrievers.