Skip to main content
PUT
/
v1
/
agents
/
{id}
/
tools
Bind tools to an agent
curl --request PUT \
  --url https://api.pyai.com/v1/agents/{id}/tools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "tool_id": "<string>",
    "enabled": true,
    "config": {},
    "name": "<string>",
    "description": "<string>"
  }
]
'
{
  "object": "list",
  "data": [
    {
      "tool_id": "<string>",
      "enabled": true,
      "config": {},
      "name": "<string>",
      "description": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Path Parameters

id
string
required

Body

application/json
tool_id
string
required
enabled
boolean
default:true
config
object
name
string

Present on agent reads when the tool resolves.

description
string

Response

Updated bindings

object
string
Example:

"list"

data
object[]