tools

List tools. Requires project.agents.read.

Arguments

  • projectReferenceString!required

  • sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • targetEnvironmentIdID

    Required with the kind environment.

  • targetBranchIdID

    Required with the kind preview_branch.

Responses

query Tools($projectReference: String!) {  tools(projectReference: $projectReference) {    data {      id      name      description      sourcePath      editMode      inputSchema      outputSchema    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }    diagnostics {      kind      severity      sourceKind      sourcePath      sourceId      code      message      details    }  }}
{  "data": {    "tools": {      "data": [        {          "id": "string",          "name": "string",          "description": "string",          "sourcePath": "string",          "editMode": "structured",          "inputSchema": {},          "outputSchema": {}        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      },      "diagnostics": [        {          "kind": "string",          "severity": "warning",          "sourceKind": "string",          "sourcePath": "string",          "sourceId": "string",          "code": "string",          "message": "string",          "details": {}        }      ]    }  }}

The ToolList! in data.tools.