Skip to main content
MUTATION
answerRunQuestion(batchId: ID!, answers: JSON!): AgentRun!

Arguments

batchId
ID!
required

Identifier of the batch.

answers
JSON!
required

The answers used to filter or perform the operation.

Returns

id
ID!

Stable identifier for this agent run.

kind

Category of this agent run.

displayNumber
Int!

The display number associated with this agent run.

status

Current status of this agent run.

phase
String!

The phase associated with this agent run.

origin

The origin associated with this agent run.

provider
String!

The provider associated with this agent run.

providerVersion
String

The provider version associated with this agent run. May be null when unavailable or not applicable.

worktreeId
ID

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

agentId
ID

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

The worktree associated with this agent run. May be null when unavailable or not applicable.

jiraIssueKey
String

The Jira issue key associated with this agent run. May be null when unavailable or not applicable.

repositoryName
String!

The repository name associated with this agent run.

branch
String

Git branch associated with this agent run. May be null when unavailable or not applicable.

model
String!

The model associated with this agent run.

effort
String

The effort associated with this agent run. May be null when unavailable or not applicable.

webSearchEnabled
Boolean!

Whether the web search enabled condition is true for this agent run.

mcpPresetIds
[ID!]!

Identifiers of the related MCP presets.

mcpToolNames
[String!]!

MCP tool names associated with this agent run.

worktreeConcurrencyLimit
Int!

Maximum same-kind runs admitted on this worktree. Zero means unlimited.

initialPrompt
String!

The initial prompt associated with this agent run.

finalOutput
String

The final output associated with this agent run. May be null when unavailable or not applicable.

error
String

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

estimatedCost
Float

The estimated cost associated with this agent run. May be null when unavailable or not applicable.

pricingSource
String

The pricing source associated with this agent run. May be null when unavailable or not applicable.

pricingUpdatedAt
String

ISO 8601 timestamp when this agent run pricing updated. May be null when unavailable or not applicable.

inputTokens
Int!

The input tokens associated with this agent run.

outputTokens
Int!

The output tokens associated with this agent run.

reasoningTokens
Int!

The reasoning tokens associated with this agent run.

cacheReadTokens
Int!

The cache read tokens associated with this agent run.

cacheWriteTokens
Int!

The cache write tokens associated with this agent run.

toolCallCount
Int!

Number of tool calls.

sourcePlanId
ID

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

sourcePlanNumber
Int

The source plan number associated with this agent run. May be null when unavailable or not applicable.

playedAt
String

ISO 8601 timestamp when this agent run played. May be null when unavailable or not applicable.

playedSessionNumber
Int

The played session number associated with this agent run. May be null when unavailable or not applicable.

sourcePlan

The source plan associated with this agent run. May be null when unavailable or not applicable.

playedSession

The played session associated with this agent run. May be null when unavailable or not applicable.

parentRunId
ID

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

parentRunNumber
Int

The parent run number associated with this agent run. May be null when unavailable or not applicable.

parentRun

The parent run associated with this agent run. May be null when unavailable or not applicable.

followUpMode
String

The follow up mode associated with this agent run. May be null when unavailable or not applicable.

followUps

Follow ups associated with this agent run.

attempts

Attempts associated with this agent run.

inputs

Inputs associated with this agent run.

modelUsage

Model usages associated with this agent run.

toolCalls

Tool calls associated with this agent run.

questionBatches

Question batches associated with this agent run.

checkpoints

Checkpoints associated with this agent run.

archivedAt
String

ISO 8601 timestamp when this agent run was archived. May be null when unavailable or not applicable.

nativeArchivedAt
String

ISO 8601 timestamp when this agent run native archived. May be null when unavailable or not applicable.

startedAt
String

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

finishedAt
String

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

createdAt
String!

ISO 8601 timestamp when this agent run was created.

updatedAt
String!

ISO 8601 timestamp when this agent run was last updated.

catalogCost
Float

Cost derived from the model price catalog rather than from what the provider reported, so a run the provider priced at nothing still shows a number.

Mutation
Variables
Response