Skip to main content
MUTATION
completeAgentJob(jobId: ID!, status: AgentJobStatus!, result: JSON, error: String): AgentJob!

Arguments

jobId
ID!
required

Identifier of the job.

status

The status used to filter or perform the operation.

result
JSON

The result used to filter or perform the operation.

error
String

The error used to filter or perform the operation.

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.

Mutation
Variables
Response