rwx results --json returns a run and its tasks as JSON. This page describes the run and task fields in that output. See rwx results for how to invoke the command and the available flags. To find a run ID to pass, list recent runs with rwx runs list.
The shape depends on what you request:
A run (e.g. rwx results <run-id>): the run-level fields plus the full Tasks tree. See Run.
A single task (e.g. rwx results <run-id> --task <key>): a single Task object, plus the top-level fields, including the containing run's RunID.
--json pairs well with jq. Keep the two shapes above in mind, and note that tasks nest recursively under Subtasks — use recurse(.Subtasks[]?) to walk the whole tree rather than just .Tasks[].
# Overall run resultrwxresults<run-id>--json|jq-r'.Status.Result'# Every command task as "key<tab>result"rwxresults<run-id>--json|jq-r'.Tasks[] | recurse(.Subtasks[]?) | select(.TaskType == "command") | "\(.Key)\t\(.Status.Result)"'# Just the failed command tasks, at any depthrwxresults<run-id>--json|jq-r'[.Tasks[] | recurse(.Subtasks[]?)] | .[] | select(.TaskType == "command" and .Status.Result == "failed") | .Key'# Output values across all command tasksrwxresults<run-id>--json|jq-r'.Tasks[] | recurse(.Subtasks[]?) | select(.TaskType == "command") | .Outputs.Values[]? | "\(.Key)=\(.Value)"'# A single task's result (task-scoped shape)rwxresults<run-id>--task<key>--json|jq-r'.Status.Result'
Every result includes these fields unless marked as conditional:
field
type
description
ID
string
The ID of the run or task you requested.
RunID
string
The containing run's ID. Equal to ID for a run-scoped result; also present for a task-scoped result.
TaskID
string
Present for a task-scoped result (equal to ID).
ResultStatus
string
The result of the requested run or task. For a run, this will be one of: succeeded, debugged, sandboxed, failed, no_result. For a task, this will be one of: succeeded, failed, no_result.
Completed
boolean
Whether results are ready. With --fail-fast, this can be true before execution finishes, once actionable failures are available.
ResultPrompt
string
The failure-investigation prompt, when available. See agentic run loops.
Returned when you request a run. It has the top-level fields described above, plus the run's own fields, and the full Tasks tree.
Run attributes are present even when their values are null. For example, repository and merge-request metadata can be null when the run was not triggered by a git event.
Each entry in a run's Tasks (and in a task's Subtasks), and the top-level object when you request a single task.
Every task carries an ID. When a task is the top-level result, it also carries TaskID (equal to ID), the containing run's RunID, and the other top-level fields.
Any messages that would have been shown in the UI.
Env
object
The sanitized environment variables available to the task. Variable names retain their original casing. Empty when no resolved environment is recorded.
ArtifactCount
integer
The number of artifacts produced by the task. To pull artifacts, see Artifacts.
These entries differ from the task's Tool Caches: their task keys are relative to the selected task's scope. For a run, the keys are relative to the run's top level.
attribute
type
description
Name
string
The tool cache name.
ScopedTaskKeys
string[]
The tasks using this cache, relative to the selected scope, with duplicates removed and sorted.
Appears in a run's Messages, a task's Messages, and a Tip's Details.
attribute
type
description
Type
string
The message category. For runs, one of error, cancelled_reason, waiting_for_manual_start, warning. For tasks, one of user_error, produced_error, timed_out, cancelled_reason, skip_reason, invalid_dynamic_tasks, warning, info.
Where a task's block sits in the run definition file. StartOffset and EndOffset are character offsets, not line numbers. Slicing the file's text from StartOffset to EndOffset gives the task's RawDefinition.
Sort a run's tasks by StartOffset to read them in the order they appear in the definition file. That needs no access to the file itself.
The offsets count UTF-16 code units, so a file that contains any character outside the Basic Multilingual Plane, such as an emoji, shifts them relative to a byte offset. Convert with a UTF-16 aware slice.
attribute
type
description
StartOffset
integer
The offset of the first character of the block.
EndOffset
integer
The offset just past the last character, exclusive.