Skip to main content
QUERY
agentJobs(agentId: ID!, limit: Int): [AgentJob!]!

Arguments

agentId
ID!
required

Identifier of the agent.

limit
Int
default:50

Maximum number of records to return. Defaults to 50.

Returns

id
ID!

Stable identifier for this agent job.

agentId
ID!

Identifier of the related agent.

worktreeId
ID

Identifier of the related worktree. May be null when unavailable or not applicable.

kind
String!

Category of this agent job.

payload
JSON!

Structured payload associated with this agent job.

Current status of this agent job.

idempotencyKey
String!

The idempotency key associated with this agent job.

result
JSON

Structured result associated with this agent job. May be null when unavailable or not applicable.

error
String

Error message when this agent job did not complete successfully. May be null when unavailable or not applicable.

timeoutSeconds
Int!

Timeout, in seconds.

createdAt
String!

ISO 8601 timestamp when this agent job was created.

startedAt
String

ISO 8601 timestamp when this agent job started. May be null when unavailable or not applicable.

finishedAt
String

ISO 8601 timestamp when this agent job finished. May be null when unavailable or not applicable.

updatedAt
String!

ISO 8601 timestamp when this agent job was last updated.

worktreeOperationResult

Typed worktree-operation result when this is a worktree operation job.

Query
Variables
Response