Update queue item
update_queue_itemRevise a selected queue entry's instructions using its version so the change applies to the intended work item.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"queueItemId": "<queueItemId>",
"expectedVersion": "<expectedVersion>",
"instructions": "<instructions>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "update_queue_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Owned Brain Scanner project ID from the account's project list; not a local path or repository URL. | |
| sessionId | No | ID of this project's active agent session, returned when the session was started. Not needed for read-only calls. | |
| executionId | No | Execution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID. | |
| queueItemId | Yes | Exact queue item ID as listed in the project queue, including its type prefix; do not substitute the underlying record ID. | |
| instructions | Yes | Revised instructions for the selected queued item. | |
| idempotencyKey | Yes | Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action. | |
| expectedVersion | Yes | Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying. |