Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
tools
Attach a tool to an agent
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/{agentId}/tools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "file_search"
}
'
{
  "id": "<string>",
  "type": "file_search",
  "name": "<string>",
  "display_name": "<string>",
  "description": "<string>",
  "catalog_id": "<string>",
  "auth": {},
  "icon_url": "<string>",
  "vector_store_id": "<string>",
  "server": "<string>",
  "headers": {},
  "scope": "<string>",
  "url": "<string>",
  "parameters": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

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

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

agentId
string
required
Maximum string length: 64

Body

application/json
type
enum<string>
required
Available options:
file_search,
mcp,
function
Maximum string length: 64
name
string
Maximum string length: 128
Pattern: ^[a-zA-Z0-9_-]+$
display_name
string
Maximum string length: 256
description
string
Maximum string length: 4096
catalog_id
string
Maximum string length: 128
auth
object
icon_url
string
Maximum string length: 2048
vector_store_id
string

Required for file_search.

Maximum string length: 128
server
string

MCP server URL (for mcp).

Maximum string length: 2048
headers
object
scope
string
Maximum string length: 256
url
string

Required for function.

Maximum string length: 2048
parameters
object

JSON Schema describing the function tool's parameters.

Response

Tool added.

Tool entry attached to an agent. Discriminated by type - file_search (requires vector_store_id), mcp (uses server, headers, scope), or function (uses url, parameters, headers).

id
string
type
enum<string>
Available options:
file_search,
mcp,
function
name
string
Pattern: ^[a-zA-Z0-9_-]+$
display_name
string
description
string
catalog_id
string
auth
object
icon_url
string
vector_store_id
string

Required for file_search.

server
string

MCP server URL (for mcp).

headers
object
scope
string
url
string

Required for function.

parameters
object

JSON Schema describing the function tool's parameters.