Read one project tool by its ID to inspect its input and output schemas; returns the tool. Requires project.agents.read.
Arguments
projectReferenceString!requiredidString!requiredThe id of the definition, from its list.
sourceTargetKindSourceTargetKindThe source to read; default runtimeTargetKind, else project. One of
project,main_branch,environment,preview_branch.runtimeTargetKindRuntimeTargetKindUsed as the source to read when sourceTargetKind is omitted. One of
main_branch,environment,preview_branch.targetEnvironmentIdIDRequired with the kind environment.
targetBranchIdIDRequired with the kind preview_branch.
Responses
query Tool($projectReference: String!, $id: String!) { tool(projectReference: $projectReference, id: $id) { id name description sourcePath editMode inputSchema outputSchema }}{ "data": { "tool": { "id": "string", "name": "string", "description": "string", "sourcePath": "string", "editMode": "structured", "inputSchema": {}, "outputSchema": {} } }}The Tool! in data.tool.