action: Action{ commands, max_output_length, timeout_ms}

The shell commands and limits that describe how to run the tool call.

commands: Array[String]

Ordered shell commands for the execution environment to run.

max_output_length: Integer

Maximum number of UTF-8 characters to capture from combined stdout and stderr output.

timeout_ms: Integer

Maximum wall-clock time in milliseconds to allow the shell commands to run.

call_id: String

The unique ID of the shell tool call generated by the model.

minLength1
maxLength64
type: :shell_call

The type of the item. Always shell_call.

id: String

The unique ID of the shell tool call. Populated when this item is returned via API.

agent: Agent{ agent_name}

The agent that produced this item.

agent_name: String

The canonical name of the agent that produced this item.

caller_: Direct{ type} | Program{ caller_id, type}

The execution context that produced this tool call.

One of the following:
class Direct { type }
type: :direct

The caller type. Always direct.

class Program { caller_id, type }
caller_id: String

The call ID of the program item that produced this tool call.

minLength1
maxLength64
type: :program

The caller type. Always program.

environment: BetaLocalEnvironment { type, skills } | BetaContainerReference { container_id, type }

The environment to execute the shell commands in.

One of the following:
class BetaLocalEnvironment { type, skills }
type: :local

Use a local computer environment.

skills: Array[BetaLocalSkill { description, name, path } ]

An optional list of skills.

description: String

The description of the skill.

name: String

The name of the skill.

path: String

The path to the directory containing the skill.

class BetaContainerReference { container_id, type }
container_id: String

The ID of the referenced container.

type: :container_reference

References a container created with the /v1/containers endpoint

status: :in_progress | :completed | :incomplete

The status of the shell call. One of in_progress, completed, or incomplete.

One of the following:
:in_progress
:completed
:incomplete