Update tool

http
PUT /projects/{project_reference}/tools/{tool_id}

Replace the description of a structured project tool, where REST and GraphQL clear an omitted description and the MCP tool keeps it; returns the updated tool source document. Requires project.agents.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
tool_idpathYesProject-defined tool ID returned by list_tools. This lookup does not load a host executable tool contract.
source_target_kindquery
target_branch_idquery

Request body

FieldTypeRequiredDescription
descriptionstring,nullTool description. Null leaves it empty. On update, REST and GraphQL clear an omitted description and the MCP tool keeps the current one.
sourcestringComplete TypeScript source of the tool file. When set it is written as-is and description is ignored.

Responses

StatusDescription
200Updated tool document
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict