Skip to main content
PUT
update tool

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Tool ID

Body

application/json

Fields to change; fields left out keep their values. config replaces the whole stored config. System tools can't be changed, and a tool can't become SYSTEM.

name
string

New name for the tool, saved as on create (characters other than letters, digits, _, . and - become _). A stored config.name that matches the old name is renamed too; sessions use the tool's own name.

Required string length: 1 - 64
Example:

"search_products"

description
string

Updated description of what the tool does

Required string length: 1 - 1024
Example:

"Search the product catalog"

type
enum<string>

Updated tool type

Available options:
CLIENT,
SERVER_RAG,
SERVER_WEBHOOK
disableInterruptions
boolean
default:false

The user can't interrupt the persona while this tool runs. Defaults to false.

Example:

false

expectedUpdatedAt
string<date-time> | null

The tool's updatedAt from your last read, or null if it was null. When the tool has changed since, the update is refused with 409 instead of overwriting that change.

config
CLIENT · object

Settings in the shape for the tool's type; fields of other shapes are stored but not used. null saves an empty config.

Response

Successfully updated tool

id
string<uuid>

Unique identifier for the tool

Example:

"00000000-0000-0000-0000-000000000000"

name
string

Name of the tool

Example:

"search_knowledge_base"

description
string

Description of what the tool does

Example:

"Search the knowledge base for product information"

type
enum<string>

Type of tool

Available options:
CLIENT,
SERVER_RAG,
SERVER_WEBHOOK,
SYSTEM
config
object

Type-specific configuration

disableInterruptions
boolean
default:false

When true, interruptions are disabled while this tool is executing

createdAt
string<date-time>

When the tool was created

updatedAt
string<date-time> | null

When the tool was last updated

usageCount
integer

Number of the organization's live personas using this tool