Skip to content
gist.link ↗

agentToolInvocations

Query Agent Workforce API — POST https://agentworkforce.api.gist.link/graphql

Tool invocations by one agent, newest first.

agentworkforce:query:agentToolInvocations

The calling IAM key must hold this permission (or a wildcard that covers it: agentworkforce:query:* or agentworkforce:*) and the access token must have been minted with audience=agentworkforce. See Permissions.

type Query {
agentToolInvocations(agentUuid: ID!, first: Int, after: String): ToolInvocationConnection!
}
Argument Type Required Description
agentUuid ID! Yes —
first Int No —
after String No —

ToolInvocationConnection! — see the Agent Workforce types reference.

Terminal window
curl https://agentworkforce.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query AgentToolInvocations($agentUuid: ID!, $first: Int, $after: String) { agentToolInvocations(agentUuid: $agentUuid, first: $first, after: $after) { totalCount edges { cursor node { uuid taskUuid agentUuid toolKey input output status durationMs } } } }",
"variables": {
"agentUuid": "01a01234-abcd-7000-9000-0123456789ab",
"first": 10,
"after": "cursor"
}
}
JSON