Read tool source

http
GET /projects/{project_reference}/tools/{tool_id}/source

Read the editable source behind one project tool before changing it; returns the tool with its source text, edit mode and the reasons it can only be edited as source. Requires project.agents.read.

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

Responses

StatusDescription
200Tool document
400Bad request
401Unauthorized
403Forbidden
404Not found