Harness Notes

Built-in tools

Updated 2026-11-24,

On this page

Compare documented built-in tools and their available input and result contracts. Start from a job, or search a tool name such as write_stdin or TaskStop. Availability varies by session.

Machine-readable contracts ยท Transcript envelopes and protocol items

Tools by job

JobCodex CLI
Run a shell command
Keep a command running, send it input or stop it
Read files, PDFs or images

No text-file reader: text files are read with exec_command. view_image covers images.

Create or change files
Search or fetch the web
Start, message and wait for other agents
Plan or track tasks
Ask or notify the user
Ask for more permissions
Read MCP resources
Load more tools or plugins
Use skills
Keep notes, memories or history
Schedule work, wait or check the time
Set goals or manage the context window
Run code that calls other tools
Manage threads, worktrees and environments
Post in shared channels
Deliver files, images or reports

Codex CLI 0.164.0

77 tools.

Built in

Part of the harness. Each entry says what turns it on.

apply_patchApply a file patch.

Model apply_patch_tool_type must be present; multi-environment variant adds an optional Environment ID header. Sandbox and patch approval apply.

InputFreeform grammar

Lark grammar, not JSON. Multi-environment schema inserts environment_id after begin_patch; see constructor.

Full input definition
start: begin_patch hunk+ end_patch
begin_patch: "*** Begin Patch" LF
end_patch: "*** End Patch" LF?

hunk: add_hunk | delete_hunk | update_hunk
add_hunk: "*** Add File: " filename LF add_line+
delete_hunk: "*** Delete File: " filename LF
update_hunk: "*** Update File: " filename LF change_move? change?

filename: /(.+)/
add_line: "+" /(.*)/ LF -> line

change_move: "*** Move to: " filename LF
change: (change_context | change_line)+ eof_line?
change_context: ("@@" | "@@ " /(.+)/) LF
change_line: ("+" | "-" | " ") /(.*)/ LF
eof_line: "*** End of File" LF

%import common.LF

ResultFree-form result

FileChange protocol events are distinct from the function/custom tool result.

Full result definition
Patch application summary or model-facing error text.

Sources

clock.curr_timeReturn the current time in UTC.

CurrentTimeReminder feature or model advertises clock.

InputJSON Schema

Full input definition
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

ResultJSON Schema

Source constructor JSON Schema. Defaults and bounds in descriptions are prose unless a validation keyword also encodes them. This schema describes the code-mode value. Direct model delivery uses image or context-fragment content, not necessarily a JSON string.

FieldTypeRequiredMeaning and defaults
current_timestringYesCurrent UTC time formatted as YYYY-MM-DD HH:MM:SS UTC.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "current_time": {
      "description": "Current UTC time formatted as YYYY-MM-DD HH:MM:SS UTC.",
      "type": "string"
    }
  },
  "required": [
    "current_time"
  ],
  "type": "object"
}

Sources

clock.sleepPause execution for a specified duration.

SleepTool plus sleep_tool_mode: always_on, or model-driven clock/current-time reminder eligibility. Direct-model-only.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
duration_msnumberYesHow long to sleep in milliseconds. Must be between 1 and 43200000.
Full input definition
{
  "type": "object",
  "properties": {
    "duration_ms": {
      "type": "number",
      "description": "How long to sleep in milliseconds. Must be between 1 and 43200000."
    }
  },
  "required": [
    "duration_ms"
  ],
  "additionalProperties": false
}

ResultFree-form result

Source emits a text result and sleep lifecycle item; new user input can end sleep early. No JSON output schema.

Full result definition
elapsed wall-clock time

Sources

execRun JavaScript that composes available tools.

effective ToolMode CodeMode or CodeModeOnly; requires policy to allow exec. Nested third-party tools may be deferred/direct-only/excluded; not a general Node runtime.

InputFreeform grammar

Freeform JavaScript with optional // @exec JSON pragma. yield_time_ms and max_output_tokens are pragma controls; actual visible nested tools come from router exposure.

Full input definition

start: pragma_source | plain_source
pragma_source: PRAGMA_LINE NEWLINE SOURCE
plain_source: SOURCE

PRAGMA_LINE: /[ \t]*\/\/ @exec:[^\r\n]*/
NEWLINE: /\r?\n/
SOURCE: /[\s\S]+/

ResultFree-form result

Code-mode output differs from the raw model-visible output of a nested tool. Source output adapter handles content and completion.

Full result definition
Text/image/audio/tool content; a yielded cell reports a cell_id for wait.

Sources

exec_commandRuns a command in a PTY, returning output or a session ID for ongoing interaction.

ShellTool; model shell type enabled. UnifiedExec enables resumable sessions; otherwise policy may select one-shot exec_command. environment_id is advertised for multiple environments; additional_permissions and its enum value require ExecPermissionApprovals plus tool policy.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
additional_permissionsobjectNoSandboxed filesystem or network access for this command; only with sandbox_permissions: "with_additional_permissions".
.file_systemobjectNoFilesystem access request.
.readstring[]NoAbsolute paths to grant read access; omit when none are needed.
.writestring[]NoAbsolute paths to grant write access; omit when none are needed.
.networkobjectNoNetwork access request.
.enabledbooleanNoTrue requests network access; false or omitted requests none.
cmdstringYesShell command to execute.
environment_idstringNoEnvironment id from <environment_context>. Omit to use the primary environment.
justificationstringNoUser-facing approval question for require_escalated; omit otherwise.
loginbooleanNoTrue runs the shell with -l/-i semantics; false disables them. Defaults to true.
max_output_tokensnumberNoOutput token budget. Defaults to 10000 tokens; larger requests may be capped by policy.
prefix_rulearrayNoReusable approval prefix for cmd, only with sandbox_permissions: "require_escalated"; for example ["git", "pull"].
sandbox_permissions"use_default" | "with_additional_permissions" | "require_escalated"NoPer-command sandbox override. Defaults to use_default; use with_additional_permissions with additional_permissions, or require_escalated for unsandboxed execution.
shellstringNoShell binary to launch. Defaults to the user's default shell.
ttybooleanNoTrue allocates a PTY for the command; false or omitted uses plain pipes.
workdirstringNoWorking directory for the command. Defaults to the turn cwd.
yield_time_msnumberNoWait before yielding output. Defaults to 10000 ms; effective range is 250-30000 ms.
Full input definition
{
  "type": "object",
  "properties": {
    "additional_permissions": {
      "type": "object",
      "description": "Sandboxed filesystem or network access for this command; only with `sandbox_permissions: \"with_additional_permissions\"`.",
      "properties": {
        "file_system": {
          "type": "object",
          "description": "Filesystem access request.",
          "properties": {
            "read": {
              "type": "array",
              "description": "Absolute paths to grant read access; omit when none are needed.",
              "items": {
                "type": "string"
              }
            },
            "write": {
              "type": "array",
              "description": "Absolute paths to grant write access; omit when none are needed.",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "network": {
          "type": "object",
          "description": "Network access request.",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "True requests network access; false or omitted requests none."
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "cmd": {
      "type": "string",
      "description": "Shell command to execute."
    },
    "environment_id": {
      "type": "string",
      "description": "Environment id from <environment_context>. Omit to use the primary environment."
    },
    "justification": {
      "type": "string",
      "description": "User-facing approval question for `require_escalated`; omit otherwise."
    },
    "login": {
      "type": "boolean",
      "description": "True runs the shell with -l/-i semantics; false disables them. Defaults to true."
    },
    "max_output_tokens": {
      "type": "number",
      "description": "Output token budget. Defaults to 10000 tokens; larger requests may be capped by policy."
    },
    "prefix_rule": {
      "type": "array",
      "description": "Reusable approval prefix for `cmd`, only with `sandbox_permissions: \"require_escalated\"`; for example [\"git\", \"pull\"].",
      "items": {
        "type": "string"
      }
    },
    "sandbox_permissions": {
      "type": "string",
      "description": "Per-command sandbox override. Defaults to `use_default`; use `with_additional_permissions` with `additional_permissions`, or `require_escalated` for unsandboxed execution.",
      "enum": [
        "use_default",
        "with_additional_permissions",
        "require_escalated"
      ]
    },
    "shell": {
      "type": "string",
      "description": "Shell binary to launch. Defaults to the user's default shell."
    },
    "tty": {
      "type": "boolean",
      "description": "True allocates a PTY for the command; false or omitted uses plain pipes."
    },
    "workdir": {
      "type": "string",
      "description": "Working directory for the command. Defaults to the turn cwd."
    },
    "yield_time_ms": {
      "type": "number",
      "description": "Wait before yielding output. Defaults to 10000 ms; effective range is 250-30000 ms."
    }
  },
  "required": [
    "cmd"
  ],
  "additionalProperties": false
}

ResultJSON Schema

Source constructor JSON Schema. Defaults and bounds in descriptions are prose unless a validation keyword also encodes them. Direct model output is a formatted text rendering; code_mode_result returns this object. Session lifecycle/protocol events are separate.

FieldTypeRequiredMeaning and defaults
chunk_idstringNoChunk identifier included when the response reports one.
exit_codenumberNoProcess exit code when the command finished during this call.
original_token_countnumberNoApproximate token count before output truncation.
outputstringYesCommand output text, possibly truncated.
session_idnumberNoSession identifier to pass to write_stdin when the process is still running.
wall_time_secondsnumberYesElapsed wall time spent waiting for output in seconds.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "chunk_id": {
      "description": "Chunk identifier included when the response reports one.",
      "type": "string"
    },
    "exit_code": {
      "description": "Process exit code when the command finished during this call.",
      "type": "number"
    },
    "original_token_count": {
      "description": "Approximate token count before output truncation.",
      "type": "number"
    },
    "output": {
      "description": "Command output text, possibly truncated.",
      "type": "string"
    },
    "session_id": {
      "description": "Session identifier to pass to write_stdin when the process is still running.",
      "type": "number"
    },
    "wall_time_seconds": {
      "description": "Elapsed wall time spent waiting for output in seconds.",
      "type": "number"
    }
  },
  "required": [
    "wall_time_seconds",
    "output"
  ],
  "type": "object"
}

Failures and lifecycle

  • Returns session_id while running; exit_code after completion; bounded output may be truncated. tty defaults false. login defaults true. yield_time_ms defaults 10000. Handler also parses timeout_ms, which is not an advertised schema field. Advertised number fields may be narrower unsigned/integer serde fields at execution.
  • One-shot exec_command removes resumable process authority; a familiar tool name does not imply write_stdin availability.

Sources

followup_taskSend a follow-up task to an existing non-root target agent and trigger a turn if it is idle.

MultiAgentVersion V2; disable_native_tools must be false; child model must support V2. Configurable tool namespace. disable_direct_message removes send_message/followup_task; wait_agent_enabled controls wait_agent. Catalog may override parameters; spawn metadata/model fields are configurable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
messagestringYesMessage text to send to the target agent.
targetstringYesAgent id or canonical task name to send a follow-up task to (from spawn_agent).
Full input definition
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Message text to send to the target agent.",
      "encrypted": true
    },
    "target": {
      "type": "string",
      "description": "Agent id or canonical task name to send a follow-up task to (from spawn_agent)."
    }
  },
  "required": [
    "target",
    "message"
  ],
  "additionalProperties": false
}

ResultFree-form result

Message dispatch returns empty FunctionToolOutput on success; does not prove recipient execution or completion.

Full result definition
Empty text acknowledgment

Sources

get_context_remainingGet the remaining tokens in the current context window.

TokenBudget feature.

InputJSON Schema

Full input definition
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

ResultJSON Schema

Source constructor JSON Schema. Defaults and bounds in descriptions are prose unless a validation keyword also encodes them. This schema describes the code-mode value. Direct model delivery uses image or context-fragment content, not necessarily a JSON string.

FieldTypeRequiredMeaning and defaults
tokens_left{"type":"integer"} | {"type":"null"}YesRemaining tokens in the current context window, or null when unavailable.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "tokens_left": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Remaining tokens in the current context window, or null when unavailable."
    }
  },
  "required": [
    "tokens_left"
  ],
  "type": "object"
}

Sources

interrupt_agentInterrupt an agent's current turn, if any, and return its previous status.

MultiAgentVersion V2; disable_native_tools must be false; child model must support V2. Configurable tool namespace. disable_direct_message removes send_message/followup_task; wait_agent_enabled controls wait_agent. Catalog may override parameters; spawn metadata/model fields are configurable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
targetstringYesAgent id or canonical task name to interrupt (from spawn_agent).
Full input definition
{
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "Agent id or canonical task name to interrupt (from spawn_agent)."
    }
  },
  "required": [
    "target"
  ],
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
previous_statussee schemaYesThe agent status observed before the interrupt request was handled.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "previous_status": {
      "allOf": [
        {
          "oneOf": [
            {
              "enum": [
                "pending_init",
                "running",
                "interrupted",
                "shutdown",
                "not_found"
              ],
              "type": "string"
            },
            {
              "additionalProperties": false,
              "properties": {
                "completed": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "completed"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "errored": {
                  "type": "string"
                }
              },
              "required": [
                "errored"
              ],
              "type": "object"
            }
          ]
        }
      ],
      "description": "The agent status observed before the interrupt request was handled."
    }
  },
  "required": [
    "previous_status"
  ],
  "type": "object"
}

Sources

list_agentsList live agents in the current root thread tree.

MultiAgentVersion V2; disable_native_tools must be false; child model must support V2. Configurable tool namespace. disable_direct_message removes send_message/followup_task; wait_agent_enabled controls wait_agent. Catalog may override parameters; spawn metadata/model fields are configurable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
path_prefixstringNoTask-path prefix filter without a trailing slash. Omit to list all live agents.
Full input definition
{
  "type": "object",
  "properties": {
    "path_prefix": {
      "type": "string",
      "description": "Task-path prefix filter without a trailing slash. Omit to list all live agents."
    }
  },
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
agentsarrayYesLive agents visible in the current root thread tree.
[].agent_namestringYesCanonical task name for the agent when available, otherwise the agent id.
[].agent_statusunknownYesLast known status of the agent.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "agents": {
      "description": "Live agents visible in the current root thread tree.",
      "items": {
        "additionalProperties": false,
        "properties": {
          "agent_name": {
            "description": "Canonical task name for the agent when available, otherwise the agent id.",
            "type": "string"
          },
          "agent_status": {
            "allOf": [
              {
                "oneOf": [
                  {
                    "enum": [
                      "pending_init",
                      "running",
                      "interrupted",
                      "shutdown",
                      "not_found"
                    ],
                    "type": "string"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "completed": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "completed"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "errored": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "errored"
                    ],
                    "type": "object"
                  }
                ]
              }
            ],
            "description": "Last known status of the agent."
          }
        },
        "required": [
          "agent_name",
          "agent_status"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "agents"
  ],
  "type": "object"
}

Sources

list_available_plugins_to_installList candidate plugins and connectors.

ToolSuggest + Apps + Plugins and nonempty candidate list; ListTool presentation only.

InputJSON Schema

Full input definition
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

ResultSource declaration

Implementation result declarations, not a formal output schema. Plugin suggestion completion and user confirmation do not alone prove future tool availability.

Full result definition
#[derive(Clone, Copy, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum DiscoverableToolType {
    Connector,
    Plugin,
}

#[derive(Clone, Copy, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum DiscoverableToolAction {
    Install,
    Enable,
}

#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
pub struct RequestPluginInstallEntry {
    pub id: String,
    pub name: String,
    pub description: Option<String>,
    pub tool_type: DiscoverableToolType,
    pub has_skills: bool,
    pub mcp_server_names: Vec<String>,
    pub app_connector_ids: Vec<String>,
}

#[derive(Clone, Debug, Serialize, PartialEq, Eq)]
pub struct ListAvailablePluginsToInstallResult {
    pub tools: Vec<RequestPluginInstallEntry>,
}

Sources

multi_agent_v1.close_agentClose an agent and any open descendants when they are no longer needed, and return the target agent's previous status before shutdown was requested.

MultiAgentVersion V1; next spawn depth within agent_max_depth. Deferred when model supports search. V1 namespace and contracts differ from V2.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
targetstringYesAgent id to close (from spawn_agent).
Full input definition
{
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "Agent id to close (from spawn_agent)."
    }
  },
  "required": [
    "target"
  ],
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
previous_statussee schemaYesThe agent status observed before shutdown was requested.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "previous_status": {
      "allOf": [
        {
          "oneOf": [
            {
              "enum": [
                "pending_init",
                "running",
                "interrupted",
                "shutdown",
                "not_found"
              ],
              "type": "string"
            },
            {
              "additionalProperties": false,
              "properties": {
                "completed": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "completed"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "errored": {
                  "type": "string"
                }
              },
              "required": [
                "errored"
              ],
              "type": "object"
            }
          ]
        }
      ],
      "description": "The agent status observed before shutdown was requested."
    }
  },
  "required": [
    "previous_status"
  ],
  "type": "object"
}

Sources

multi_agent_v1.resume_agentResume a previously closed agent by id so it can receive send_input and wait_agent calls.

MultiAgentVersion V1; next spawn depth within agent_max_depth. Deferred when model supports search. V1 namespace and contracts differ from V2.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
idstringYesAgent id to resume.
Full input definition
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Agent id to resume."
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
status{"enum":["pending_init","running","interrupted","shutdown","not_found"],"type":"string"} | {"additionalProperties":false,"properties":{"completed":{"type":["string","null"]}},"required":["completed"],"type":"object"} | {"additionalProperties":false,"properties":{"errored":{"type":"string"}},"required":["errored"],"type":"object"}Yes
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "status": {
      "oneOf": [
        {
          "enum": [
            "pending_init",
            "running",
            "interrupted",
            "shutdown",
            "not_found"
          ],
          "type": "string"
        },
        {
          "additionalProperties": false,
          "properties": {
            "completed": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "completed"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "errored": {
              "type": "string"
            }
          },
          "required": [
            "errored"
          ],
          "type": "object"
        }
      ]
    }
  },
  "required": [
    "status"
  ],
  "type": "object"
}

Sources

multi_agent_v1.send_inputSend a message to an existing agent.

MultiAgentVersion V1; next spawn depth within agent_max_depth. Deferred when model supports search. V1 namespace and contracts differ from V2.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
interruptbooleanNoTrue interrupts the current task and handles this message immediately; false or omitted queues it.
itemsarrayNoStructured input items. Use this to pass explicit mentions (for example app:// connector paths).
[].audio_urlstringNoAudio data URL when type is audio.
[].image_urlstringNoImage URL when type is image.
[].namestringNoDisplay name when type is skill or mention.
[].pathstringNoPath when type is local_image/local_audio/skill, or structured mention target such as app://<connector-id> or plugin://<plugin-name>@<marketplace-name> when type is mention.
[].textstringNoText content when type is text.
[].typestringNoInput item type: text, image, local_image, audio, local_audio, skill, or mention.
messagestringNoLegacy plain-text message to send to the agent. Use either message or items.
targetstringYesAgent id to message (from spawn_agent).
Full input definition
{
  "type": "object",
  "properties": {
    "interrupt": {
      "type": "boolean",
      "description": "True interrupts the current task and handles this message immediately; false or omitted queues it."
    },
    "items": {
      "type": "array",
      "description": "Structured input items. Use this to pass explicit mentions (for example app:// connector paths).",
      "items": {
        "type": "object",
        "properties": {
          "audio_url": {
            "type": "string",
            "description": "Audio data URL when type is audio."
          },
          "image_url": {
            "type": "string",
            "description": "Image URL when type is image."
          },
          "name": {
            "type": "string",
            "description": "Display name when type is skill or mention."
          },
          "path": {
            "type": "string",
            "description": "Path when type is local_image/local_audio/skill, or structured mention target such as app://<connector-id> or plugin://<plugin-name>@<marketplace-name> when type is mention."
          },
          "text": {
            "type": "string",
            "description": "Text content when type is text."
          },
          "type": {
            "type": "string",
            "description": "Input item type: text, image, local_image, audio, local_audio, skill, or mention."
          }
        },
        "additionalProperties": false
      }
    },
    "message": {
      "type": "string",
      "description": "Legacy plain-text message to send to the agent. Use either message or items."
    },
    "target": {
      "type": "string",
      "description": "Agent id to message (from spawn_agent)."
    }
  },
  "required": [
    "target"
  ],
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
submission_idstringYesIdentifier for the queued input submission.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "submission_id": {
      "description": "Identifier for the queued input submission.",
      "type": "string"
    }
  },
  "required": [
    "submission_id"
  ],
  "type": "object"
}

Sources

multi_agent_v1.spawn_agentSpawn a sub-agent for a well-scoped task.

MultiAgentVersion V1; next spawn depth within agent_max_depth. Deferred when model supports search. V1 namespace and contracts differ from V2.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agent_typestringNoAgent type override for the new agent. Omit to inherit the parent agent type with a full-history fork; otherwise, default is used.
fork_contextbooleanNoTrue forks the current thread history into the new agent; false or omitted starts with only the initial prompt.
itemsarrayNoStructured input items. Use this to pass explicit mentions (for example app:// connector paths).
[].audio_urlstringNoAudio data URL when type is audio.
[].image_urlstringNoImage URL when type is image.
[].namestringNoDisplay name when type is skill or mention.
[].pathstringNoPath when type is local_image/local_audio/skill, or structured mention target such as app://<connector-id> or plugin://<plugin-name>@<marketplace-name> when type is mention.
[].textstringNoText content when type is text.
[].typestringNoInput item type: text, image, local_image, audio, local_audio, skill, or mention.
messagestringNoInitial plain-text task for the new agent. Use either message or items.
modelstringNoModel override for the new agent. Omit unless an explicit override is needed.
reasoning_effortstringNoReasoning effort override for the new agent. Omit to inherit the parent effort.
Full input definition
{
  "type": "object",
  "properties": {
    "agent_type": {
      "type": "string",
      "description": "Agent type override for the new agent. Omit to inherit the parent agent type with a full-history fork; otherwise, `default` is used.\n"
    },
    "fork_context": {
      "type": "boolean",
      "description": "True forks the current thread history into the new agent; false or omitted starts with only the initial prompt."
    },
    "items": {
      "type": "array",
      "description": "Structured input items. Use this to pass explicit mentions (for example app:// connector paths).",
      "items": {
        "type": "object",
        "properties": {
          "audio_url": {
            "type": "string",
            "description": "Audio data URL when type is audio."
          },
          "image_url": {
            "type": "string",
            "description": "Image URL when type is image."
          },
          "name": {
            "type": "string",
            "description": "Display name when type is skill or mention."
          },
          "path": {
            "type": "string",
            "description": "Path when type is local_image/local_audio/skill, or structured mention target such as app://<connector-id> or plugin://<plugin-name>@<marketplace-name> when type is mention."
          },
          "text": {
            "type": "string",
            "description": "Text content when type is text."
          },
          "type": {
            "type": "string",
            "description": "Input item type: text, image, local_image, audio, local_audio, skill, or mention."
          }
        },
        "additionalProperties": false
      }
    },
    "message": {
      "type": "string",
      "description": "Initial plain-text task for the new agent. Use either message or items."
    },
    "model": {
      "type": "string",
      "description": "Model override for the new agent. Omit unless an explicit override is needed."
    },
    "reasoning_effort": {
      "type": "string",
      "description": "Reasoning effort override for the new agent. Omit to inherit the parent effort."
    }
  },
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
agent_idstringYesThread identifier for the spawned agent.
nickname"string" | "null"YesUser-facing nickname for the spawned agent when available.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "agent_id": {
      "description": "Thread identifier for the spawned agent.",
      "type": "string"
    },
    "nickname": {
      "description": "User-facing nickname for the spawned agent when available.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "agent_id",
    "nickname"
  ],
  "type": "object"
}

Sources

multi_agent_v1.wait_agentWait for agents to reach a final status.

MultiAgentVersion V1; next spawn depth within agent_max_depth. Deferred when model supports search. V1 namespace and contracts differ from V2.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
targetsarrayYesAgent ids to wait on. Pass multiple ids to wait for whichever finishes first.
timeout_msnumberNoTimeout in milliseconds. Defaults to 30000, min 10000, max 3600000. Prefer longer waits (minutes) to avoid busy polling.
Full input definition
{
  "type": "object",
  "properties": {
    "targets": {
      "type": "array",
      "description": "Agent ids to wait on. Pass multiple ids to wait for whichever finishes first.",
      "items": {
        "type": "string"
      }
    },
    "timeout_ms": {
      "type": "number",
      "description": "Timeout in milliseconds. Defaults to 30000, min 10000, max 3600000. Prefer longer waits (minutes) to avoid busy polling."
    }
  },
  "required": [
    "targets"
  ],
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
statusobjectYesFinal statuses keyed by agent id.
timed_outbooleanYesWhether the wait call returned due to timeout before any agent reached a final status.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "status": {
      "additionalProperties": {
        "oneOf": [
          {
            "enum": [
              "pending_init",
              "running",
              "interrupted",
              "shutdown",
              "not_found"
            ],
            "type": "string"
          },
          {
            "additionalProperties": false,
            "properties": {
              "completed": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "completed"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "errored": {
                "type": "string"
              }
            },
            "required": [
              "errored"
            ],
            "type": "object"
          }
        ]
      },
      "description": "Final statuses keyed by agent id.",
      "type": "object"
    },
    "timed_out": {
      "description": "Whether the wait call returned due to timeout before any agent reached a final status.",
      "type": "boolean"
    }
  },
  "required": [
    "status",
    "timed_out"
  ],
  "type": "object"
}

Sources

new_contextStart a new context window.

TokenBudget feature; direct-model-only.

InputJSON Schema

Full input definition
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

ResultFree-form result

Requests a new context window; environment state is preserved. No formal output schema.

Full result definition
Context-window transition acknowledgment

Sources

request_permissionsRequest additional filesystem or network permissions from the user and wait for the client to grant a subset of the requested permission profile.

RequestPermissionsTool feature; selected environment and client grant response. Handler accepts environmentId as an alias of environment_id.

Aliases and version differences: environmentId (handler input alias; schema advertises environment_id)

InputJSON Schema

FieldTypeRequiredMeaning and defaults
environment_idstringNoEnvironment id from <environment_context>. Omit to use the primary environment.
permissionsobjectYesFilesystem or network access request.
.file_systemobjectNoFilesystem access request.
.readstring[]NoAbsolute paths to grant read access; omit when none are needed.
.writestring[]NoAbsolute paths to grant write access; omit when none are needed.
.networkobjectNoNetwork access request.
.enabledbooleanNoTrue requests network access; false or omitted requests none.
reasonstringNoOptional short explanation for why additional permissions are needed.
Full input definition
{
  "type": "object",
  "properties": {
    "environment_id": {
      "type": "string",
      "description": "Environment id from <environment_context>. Omit to use the primary environment."
    },
    "permissions": {
      "type": "object",
      "description": "Filesystem or network access request.",
      "properties": {
        "file_system": {
          "type": "object",
          "description": "Filesystem access request.",
          "properties": {
            "read": {
              "type": "array",
              "description": "Absolute paths to grant read access; omit when none are needed.",
              "items": {
                "type": "string"
              }
            },
            "write": {
              "type": "array",
              "description": "Absolute paths to grant write access; omit when none are needed.",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "network": {
          "type": "object",
          "description": "Network access request.",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "True requests network access; false or omitted requests none."
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "reason": {
      "type": "string",
      "description": "Optional short explanation for why additional permissions are needed."
    }
  },
  "required": [
    "permissions"
  ],
  "additionalProperties": false
}

ResultSource declaration

Serde response serialized by the handler, not an advertised output schema. Permission profiles can grant a subset or nothing; scope/defaults follow protocol types. Referenced permission enums/models remain linked rather than flattened.

Full result definition
#[derive(Debug, Clone, Default, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(deny_unknown_fields)]
pub struct RequestPermissionProfile {
    pub network: Option<NetworkPermissions>,
    pub file_system: Option<FileSystemPermissions>,
}

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
pub struct RequestPermissionsResponse {
    pub permissions: RequestPermissionProfile,
    #[serde(default)]
    pub scope: PermissionGrantScope,
    /// Review subsequent commands in this turn unless a permission hook resolves the request.
    #[serde(default, skip_serializing_if = "std::ops::Not::not")]
    pub strict_auto_review: bool,
}

Sources

request_plugin_installRequest installation of an explicitly selected plugin or connector.

ToolSuggest + Apps + Plugins and nonempty candidate list; either ListTool or RecommendationContext presentation.

InputJSON Schema

Reference union of the two constructor variants. Runtime chooses ListTool or RecommendationContext; it does not advertise this union. tool_type/action_type are strings with prose constraints, not formal enums.

Full input definition
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "plugin_id": {
          "type": "string",
          "description": "The parenthesized plugin ID from the `<recommended_plugins>` list."
        },
        "suggest_reason": {
          "type": "string",
          "description": "Concise one-line user-facing reason why this plugin can help with the current request."
        }
      },
      "required": [
        "plugin_id",
        "suggest_reason"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "action_type": {
          "type": "string",
          "description": "Suggested action for the tool. Use \"install\"."
        },
        "suggest_reason": {
          "type": "string",
          "description": "Concise one-line user-facing reason why this plugin or connector can help with the current request."
        },
        "tool_id": {
          "type": "string",
          "description": "Connector or plugin id to suggest."
        },
        "tool_type": {
          "type": "string",
          "description": "Type of discoverable tool to suggest. Use \"connector\" or \"plugin\"."
        }
      },
      "required": [
        "tool_type",
        "action_type",
        "tool_id",
        "suggest_reason"
      ],
      "additionalProperties": false
    }
  ]
}

ResultSource declaration

Implementation result declarations, not a formal output schema. Plugin suggestion completion and user confirmation do not alone prove future tool availability.

Full result definition
#[derive(Debug, Serialize, PartialEq, Eq)]
pub struct RequestPluginInstallResult {
    pub completed: bool,
    pub user_confirmed: bool,
    pub tool_type: DiscoverableToolType,
    pub action_type: DiscoverableToolAction,
    pub tool_id: String,
    pub tool_name: String,
    pub suggest_reason: String,
}

Sources

request_user_inputAsk blocking multiple-choice questions.

experimental_request_user_input_enabled. Direct-model-only; handler checks the configured allowed collaboration modes (Plan by default).

InputJSON Schema

FieldTypeRequiredMeaning and defaults
questionsarrayYesQuestions to show the user. Prefer 1 and do not exceed 3
[].headerstringYesShort header label shown in the UI (12 or fewer chars).
[].idstringYesStable identifier for mapping answers (snake_case).
[].optionsobject[]YesProvide 2-3 mutually exclusive choices. Put the recommended option first and suffix its label with "(Recommended)". Do not include an "Other" option in this list; the client will add a free-form "Other" option automatically.
[].descriptionstringYesOne short sentence explaining impact/tradeoff if selected.
[].labelstringYesUser-facing label (1-5 words).
[].questionstringYesSingle-sentence prompt shown to the user.
Full input definition
{
  "type": "object",
  "properties": {
    "questions": {
      "type": "array",
      "description": "Questions to show the user. Prefer 1 and do not exceed 3",
      "items": {
        "type": "object",
        "properties": {
          "header": {
            "type": "string",
            "description": "Short header label shown in the UI (12 or fewer chars)."
          },
          "id": {
            "type": "string",
            "description": "Stable identifier for mapping answers (snake_case)."
          },
          "options": {
            "type": "array",
            "description": "Provide 2-3 mutually exclusive choices. Put the recommended option first and suffix its label with \"(Recommended)\". Do not include an \"Other\" option in this list; the client will add a free-form \"Other\" option automatically.",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string",
                  "description": "One short sentence explaining impact/tradeoff if selected."
                },
                "label": {
                  "type": "string",
                  "description": "User-facing label (1-5 words)."
                }
              },
              "required": [
                "label",
                "description"
              ],
              "additionalProperties": false
            }
          },
          "question": {
            "type": "string",
            "description": "Single-sentence prompt shown to the user."
          }
        },
        "required": [
          "id",
          "header",
          "question",
          "options"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "questions"
  ],
  "additionalProperties": false
}

ResultSource declaration

Serde response serialized by the handler, not an advertised output schema. Permission profiles can grant a subset or nothing; scope/defaults follow protocol types. Referenced permission enums/models remain linked rather than flattened.

Full result definition
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
pub struct RequestUserInputAnswer {
    pub answers: Vec<String>,
}

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
pub struct RequestUserInputResponse {
    pub answers: HashMap<String, RequestUserInputAnswer>,
}

Sources

request_user_input_asyncPresent questions without waiting for a reply.

experimental_request_user_input_enabled; root agent; model catalog advertises request_user_input_async or historical send_user_message_async. Direct-model-only; catalog can override parameters.

Aliases and version differences: send_user_message_async (catalog eligibility name only; not a second registered callable)

InputJSON Schema

FieldTypeRequiredMeaning and defaults
questionsarrayYesOne or more self-contained questions to present together, in display order.
[].optionsstring[]NoSuggested answers, in display order. Put the recommended answer first; the first option is preselected by default. The user can select one option or enter a free-text answer. Do not include an Other option or a free-text placeholder; the UI provides free-text input automatically. Omit options for a free-text-only question.
[].titlestringYesThe complete question shown to the user, including any context needed to answer it.
Full input definition
{
  "type": "object",
  "properties": {
    "questions": {
      "type": "array",
      "description": "One or more self-contained questions to present together, in display order.",
      "items": {
        "type": "object",
        "properties": {
          "options": {
            "type": "array",
            "description": "Suggested answers, in display order. Put the recommended answer first; the first option is preselected by default. The user can select one option or enter a free-text answer. Do not include an Other option or a free-text placeholder; the UI provides free-text input automatically. Omit options for a free-text-only question.",
            "items": {
              "type": "string"
            },
            "minItems": 1
          },
          "title": {
            "type": "string",
            "description": "The complete question shown to the user, including any context needed to answer it."
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "minItems": 1
    }
  },
  "required": [
    "questions"
  ],
  "additionalProperties": false
}

ResultImplementation shape

Handler emits JSON text; accepts delivery asynchronously, does not wait for a user response.

Full result definition
{"accepted": true}

Sources

send_messageSend a message to an existing agent.

MultiAgentVersion V2; disable_native_tools must be false; child model must support V2. Configurable tool namespace. disable_direct_message removes send_message/followup_task; wait_agent_enabled controls wait_agent. Catalog may override parameters; spawn metadata/model fields are configurable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
messagestringYesMessage text to queue on the target agent.
targetstringYesRelative or canonical task name to message (from spawn_agent).
Full input definition
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Message text to queue on the target agent.",
      "encrypted": true
    },
    "target": {
      "type": "string",
      "description": "Relative or canonical task name to message (from spawn_agent)."
    }
  },
  "required": [
    "target",
    "message"
  ],
  "additionalProperties": false
}

ResultFree-form result

Message dispatch returns empty FunctionToolOutput on success; does not prove recipient execution or completion.

Full result definition
Empty text acknowledgment

Sources

send_message_to_user_asyncSend a concise message that needs the user's attention during ongoing work.

Root agent, SendMessageToUserAsync feature or matching model experimental tool. Direct-model-only.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
messagestringYesThe concise question or update to send to the user.
Full input definition
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "The concise question or update to send to the user."
    }
  },
  "required": [
    "message"
  ],
  "additionalProperties": false
}

ResultImplementation shape

Handler emits JSON text; accepts delivery asynchronously, does not wait for a user response.

Full result definition
{"accepted": true}

Sources

spawn_agentSpawns an agent to work on the specified task.

MultiAgentVersion V2; disable_native_tools must be false; child model must support V2. Configurable tool namespace. disable_direct_message removes send_message/followup_task; wait_agent_enabled controls wait_agent. Catalog may override parameters; spawn metadata/model fields are configurable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agent_typestringNoAgent type override for the new agent. Omit unless explicitly asked. The selected role applies regardless of how much parent history is inherited.
fork_turnsstringNoParent history to inherit. Defaults to all; use none to start without parent history. Only all and none are supported.
messagestringYesInitial plain-text task for the new agent.
modelstringNoModel override for the new agent. Omit unless an explicit override is needed.
reasoning_effortstringNoReasoning effort override for the new agent. Omit to inherit the parent effort.
task_namestringYesTask name for the new agent. Use lowercase letters, digits, and underscores.
Full input definition
{
  "type": "object",
  "properties": {
    "agent_type": {
      "type": "string",
      "description": "Agent type override for the new agent. Omit unless explicitly asked. The selected role applies regardless of how much parent history is inherited.\n"
    },
    "fork_turns": {
      "type": "string",
      "description": "Parent history to inherit. Defaults to `all`; use `none` to start without parent history. Only `all` and `none` are supported."
    },
    "message": {
      "type": "string",
      "description": "Initial plain-text task for the new agent.",
      "encrypted": true
    },
    "model": {
      "type": "string",
      "description": "Model override for the new agent. Omit unless an explicit override is needed."
    },
    "reasoning_effort": {
      "type": "string",
      "description": "Reasoning effort override for the new agent. Omit to inherit the parent effort."
    },
    "task_name": {
      "type": "string",
      "description": "Task name for the new agent. Use lowercase letters, digits, and underscores."
    }
  },
  "required": [
    "task_name",
    "message"
  ],
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
nickname"string" | "null"YesUser-facing nickname for the spawned agent when available.
task_namestringYesCanonical task name for the spawned agent.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "nickname": {
      "description": "User-facing nickname for the spawned agent when available.",
      "type": [
        "string",
        "null"
      ]
    },
    "task_name": {
      "description": "Canonical task name for the spawned agent.",
      "type": "string"
    }
  },
  "required": [
    "task_name",
    "nickname"
  ],
  "type": "object"
}

Sources

test_sync_toolInternal synchronization helper used by Codex integration tests.

Only model metadata experimental_supported_tools includes test_sync_tool; integration-test helper.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
barrierobjectNo
.idstringYesIdentifier shared by concurrent calls that should rendezvous
.participantsnumberYesNumber of tool calls that must arrive before the barrier opens
.timeout_msnumberNoMaximum barrier wait in milliseconds. Defaults to 1000.
sleep_after_msnumberNoDelay after completing the barrier. Defaults to no delay.
sleep_before_msnumberNoDelay before any other action. Defaults to no delay.
wait_for_git_enrichmentbooleanNoWait for Git enrichment for the current turn to finish, subject to a timeout.
Full input definition
{
  "type": "object",
  "properties": {
    "barrier": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier shared by concurrent calls that should rendezvous"
        },
        "participants": {
          "type": "number",
          "description": "Number of tool calls that must arrive before the barrier opens"
        },
        "timeout_ms": {
          "type": "number",
          "description": "Maximum barrier wait in milliseconds. Defaults to 1000."
        }
      },
      "required": [
        "id",
        "participants"
      ],
      "additionalProperties": false
    },
    "sleep_after_ms": {
      "type": "number",
      "description": "Delay after completing the barrier. Defaults to no delay."
    },
    "sleep_before_ms": {
      "type": "number",
      "description": "Delay before any other action. Defaults to no delay."
    },
    "wait_for_git_enrichment": {
      "type": "boolean",
      "description": "Wait for Git enrichment for the current turn to finish, subject to a timeout."
    }
  },
  "additionalProperties": false
}

ResultFree-form result

Internal integration-test helper; barrier timeout and Git-enrichment failures may be model-facing errors.

Full result definition
Text synchronization acknowledgment

Sources

update_planUpdates the task plan.

config.update_plan_enabled.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
explanationstringNoOptional explanation for this plan update.
planarrayYesThe list of steps
[].status"pending" | "in_progress" | "completed"YesStep status.
[].stepstringYesTask step text.
Full input definition
{
  "type": "object",
  "properties": {
    "explanation": {
      "type": "string",
      "description": "Optional explanation for this plan update."
    },
    "plan": {
      "type": "array",
      "description": "The list of steps",
      "items": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Step status.",
            "enum": [
              "pending",
              "in_progress",
              "completed"
            ]
          },
          "step": {
            "type": "string",
            "description": "Task step text."
          }
        },
        "required": [
          "step",
          "status"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "plan"
  ],
  "additionalProperties": false
}

ResultFree-form result

Text acknowledgment; handler validates plan arguments. No formal output schema.

Full result definition
Plan updated

Sources

view_imageView a local image file from the filesystem when visual inspection is needed.

ViewImage feature. environment_id only for multiple environments; detail only when original detail is supported and unified image budget is off.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
detail"high" | "original"NoImage detail level. Defaults to high; use original to preserve exact resolution.
environment_idstringNoEnvironment id from <environment_context>. Omit to use the primary environment.
pathstringYesLocal filesystem path to an image file.
Full input definition
{
  "type": "object",
  "properties": {
    "detail": {
      "type": "string",
      "description": "Image detail level. Defaults to `high`; use `original` to preserve exact resolution.",
      "enum": [
        "high",
        "original"
      ]
    },
    "environment_id": {
      "type": "string",
      "description": "Environment id from <environment_context>. Omit to use the primary environment."
    },
    "path": {
      "type": "string",
      "description": "Local filesystem path to an image file."
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

ResultJSON Schema

Source constructor JSON Schema. Defaults and bounds in descriptions are prose unless a validation keyword also encodes them. This schema describes the code-mode value. Direct model delivery uses image or context-fragment content, not necessarily a JSON string.

FieldTypeRequiredMeaning and defaults
detail"high" | "original"YesImage detail hint returned by view_image. Returns high for default resized behavior or original when original resolution is preserved.
image_urlstringYesData URL for the loaded image.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "description": "Image detail hint returned by view_image. Returns `high` for default resized behavior or `original` when original resolution is preserved.",
      "enum": [
        "high",
        "original"
      ],
      "type": "string"
    },
    "image_url": {
      "description": "Data URL for the loaded image.",
      "type": "string"
    }
  },
  "required": [
    "image_url",
    "detail"
  ],
  "type": "object"
}

Sources

waitResume or terminate a yielded JavaScript exec cell.

CodeMode/CodeModeOnly wrapper registration. Catalog can override description/parameters.

InputJSON Schema

Transcribed from source builder; no constructor execution for this snapshot. Catalog overrides may replace it.

FieldTypeRequiredMeaning and defaults
cell_idstringYes
yield_time_msnumberNoDefault 10000 ms.
max_tokensnumberNoDefault 10000.
terminatebooleanNoDefault false.
Full input definition
{
  "type": "object",
  "properties": {
    "cell_id": {
      "type": "string"
    },
    "yield_time_ms": {
      "type": "number",
      "description": "Default 10000 ms."
    },
    "max_tokens": {
      "type": "number",
      "description": "Default 10000."
    },
    "terminate": {
      "type": "boolean",
      "description": "Default false."
    }
  },
  "required": [
    "cell_id"
  ],
  "additionalProperties": false
}

ResultFree-form result

Only valid for a yielded exec cell; not the unified-exec process session used by write_stdin.

Full result definition
New output, cell completion, or termination.

Sources

wait_agentWait for a mailbox update from any live agent, including queued messages and final-status notifications.

MultiAgentVersion V2; disable_native_tools must be false; child model must support V2. Configurable tool namespace. disable_direct_message removes send_message/followup_task; wait_agent_enabled controls wait_agent. Catalog may override parameters; spawn metadata/model fields are configurable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
timeout_msnumberNoTimeout in milliseconds. Defaults to 30000, min 10000, max 3600000.
Full input definition
{
  "type": "object",
  "properties": {
    "timeout_ms": {
      "type": "number",
      "description": "Timeout in milliseconds. Defaults to 30000, min 10000, max 3600000."
    }
  },
  "additionalProperties": false
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
messagestringYesBrief wait summary without the agent's final content, including any timeout adjustment.
timed_outbooleanYesWhether the wait call returned because no mailbox update arrived before the timeout.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "message": {
      "description": "Brief wait summary without the agent's final content, including any timeout adjustment.",
      "type": "string"
    },
    "timed_out": {
      "description": "Whether the wait call returned because no mailbox update arrived before the timeout.",
      "type": "boolean"
    }
  },
  "required": [
    "message",
    "timed_out"
  ],
  "type": "object"
}

Sources

wait_for_environmentWait for an execution environment to become ready.

DeferredExecutor feature; selected environment must be ready, starting or failed.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
environment_idstringYes
Full input definition
{
  "type": "object",
  "properties": {
    "environment_id": {
      "type": "string",
      "description": ""
    }
  },
  "required": [
    "environment_id"
  ],
  "additionalProperties": false
}

ResultImplementation shape

JSON result from handler, not an advertised formal output schema. Failed or unknown environment returns a bounded model-facing error.

Full result definition
{ environment_id: string, status: "ready" }

Sources

write_stdinWrites characters to an existing unified exec session and returns recent output.

ShellTool + UnifiedExec, enabled model shell type and tool policy; operates only on a live unified-exec session in this runtime.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
charsstringNoBytes to write to stdin. Defaults to empty, which polls without writing.
max_output_tokensnumberNoOutput token budget. Defaults to 10000 tokens; larger requests may be capped by policy.
session_idnumberYesIdentifier of the running unified exec session.
yield_time_msnumberNoWait before yielding output. Non-empty writes default to 250 ms and cap at 30000 ms; empty polls wait 5000-300000 ms by default.
Full input definition
{
  "type": "object",
  "properties": {
    "chars": {
      "type": "string",
      "description": "Bytes to write to stdin. Defaults to empty, which polls without writing."
    },
    "max_output_tokens": {
      "type": "number",
      "description": "Output token budget. Defaults to 10000 tokens; larger requests may be capped by policy."
    },
    "session_id": {
      "type": "number",
      "description": "Identifier of the running unified exec session."
    },
    "yield_time_ms": {
      "type": "number",
      "description": "Wait before yielding output. Non-empty writes default to 250 ms and cap at 30000 ms; empty polls wait 5000-300000 ms by default."
    }
  },
  "required": [
    "session_id"
  ],
  "additionalProperties": false
}

ResultJSON Schema

Source constructor JSON Schema. Defaults and bounds in descriptions are prose unless a validation keyword also encodes them. Direct model output is a formatted text rendering; code_mode_result returns this object. Session lifecycle/protocol events are separate.

FieldTypeRequiredMeaning and defaults
chunk_idstringNoChunk identifier included when the response reports one.
exit_codenumberNoProcess exit code when the command finished during this call.
original_token_countnumberNoApproximate token count before output truncation.
outputstringYesCommand output text, possibly truncated.
session_idnumberNoSession identifier to pass to write_stdin when the process is still running.
wall_time_secondsnumberYesElapsed wall time spent waiting for output in seconds.
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "chunk_id": {
      "description": "Chunk identifier included when the response reports one.",
      "type": "string"
    },
    "exit_code": {
      "description": "Process exit code when the command finished during this call.",
      "type": "number"
    },
    "original_token_count": {
      "description": "Approximate token count before output truncation.",
      "type": "number"
    },
    "output": {
      "description": "Command output text, possibly truncated.",
      "type": "string"
    },
    "session_id": {
      "description": "Session identifier to pass to write_stdin when the process is still running.",
      "type": "number"
    },
    "wall_time_seconds": {
      "description": "Elapsed wall time spent waiting for output in seconds.",
      "type": "number"
    }
  },
  "required": [
    "wall_time_seconds",
    "output"
  ],
  "type": "object"
}

Failures and lifecycle

  • session_id must refer to a running process. chars defaults empty (poll). With nonempty chars yield defaults 250 ms and caps at 30000; empty polls use 5000โ€“300000 ms. Completion returns exit_code and ends the live session.

Sources

Extensions

Added by an installed extension or App Server contributor.

collaboration.create_channelCreate a channel where all agents in this collaboration can read and post messages.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
channel_namestringYes
descriptionstringNoOptional channel purpose, at most 512 UTF-8 bytes.
subscribebooleanNoSubscribe to new top-level posts. Default true.
Full input definition
{
  "type": "object",
  "properties": {
    "channel_name": {
      "type": "string"
    },
    "description": {
      "type": "string",
      "description": "Optional channel purpose, at most 512 UTF-8 bytes."
    },
    "subscribe": {
      "type": "boolean",
      "description": "Subscribe to new top-level posts. Default true."
    }
  },
  "required": [
    "channel_name"
  ],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.get_channelsList channels, most recently active first, or search by a case-insensitive part of the name.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNoOpaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh.
limitintegerNoMaximum results, default 20; output budgets may return fewer. Continue with next_cursor.
querystringNo
recent_firstbooleanNoNewest first by default.
Full input definition
{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "description": "Opaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh."
    },
    "limit": {
      "type": "integer",
      "description": "Maximum results, default 20; output budgets may return fewer. Continue with next_cursor."
    },
    "query": {
      "type": "string"
    },
    "recent_first": {
      "type": "boolean",
      "description": "Newest first by default."
    }
  },
  "required": [],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.list_threadsList a channel's threads with previews of the first post and latest reply.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
channel_namestringYes
cursorstringNoOpaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh.
limitintegerNoMaximum results, default 20; output budgets may return fewer. Continue with next_cursor.
max_chars_per_postintegerNoMaximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000.
recent_firstbooleanNoNewest first by default.
sort"created" | "activity"No
Full input definition
{
  "type": "object",
  "properties": {
    "channel_name": {
      "type": "string"
    },
    "cursor": {
      "type": "string",
      "description": "Opaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh."
    },
    "limit": {
      "type": "integer",
      "description": "Maximum results, default 20; output budgets may return fewer. Continue with next_cursor."
    },
    "max_chars_per_post": {
      "type": "integer",
      "description": "Maximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000."
    },
    "recent_first": {
      "type": "boolean",
      "description": "Newest first by default."
    },
    "sort": {
      "type": "string",
      "enum": [
        "created",
        "activity"
      ]
    }
  },
  "required": [
    "channel_name"
  ],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.postStart a thread in an existing or new channel, or reply using the first post's message ID as thread_id.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agents_to_notifyarrayNoAbsolute agent paths or references relative to you; maximum 256.
channel_namestringNo
new_channel_namestringNoCreate and subscribe to this channel.
textstringYes
thread_idstringNo
Full input definition
{
  "type": "object",
  "properties": {
    "agents_to_notify": {
      "type": "array",
      "description": "Absolute agent paths or references relative to you; maximum 256.",
      "items": {
        "type": "string"
      }
    },
    "channel_name": {
      "type": "string"
    },
    "new_channel_name": {
      "type": "string",
      "description": "Create and subscribe to this channel."
    },
    "text": {
      "type": "string"
    },
    "thread_id": {
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.read_postRead a post or reply by message ID, without needing its channel.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
limit_charsintegerNoMaximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000.
message_idstringYes
offset_charsintegerNoDefault 0.
Full input definition
{
  "type": "object",
  "properties": {
    "limit_chars": {
      "type": "integer",
      "description": "Maximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000."
    },
    "message_id": {
      "type": "string"
    },
    "offset_chars": {
      "type": "integer",
      "description": "Default 0."
    }
  },
  "required": [
    "message_id"
  ],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.read_threadRead a thread using its first post's message ID.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNoOpaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh.
limitintegerNoMaximum results, default 20; output budgets may return fewer. Continue with next_cursor.
max_chars_per_postintegerNoMaximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000.
thread_idstringYes
Full input definition
{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "description": "Opaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh."
    },
    "limit": {
      "type": "integer",
      "description": "Maximum results, default 20; output budgets may return fewer. Continue with next_cursor."
    },
    "max_chars_per_post": {
      "type": "integer",
      "description": "Maximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000."
    },
    "thread_id": {
      "type": "string"
    }
  },
  "required": [
    "thread_id"
  ],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.search_postsSearch top-level posts and replies, newest first.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
after_message_idstringNo
authorstringNoAn absolute agent path or a reference relative to you.
channel_namestringNo
cursorstringNoOpaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh.
limitintegerNoMaximum results, default 20; output budgets may return fewer. Continue with next_cursor.
max_chars_per_postintegerNoMaximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000.
querystringNo
Full input definition
{
  "type": "object",
  "properties": {
    "after_message_id": {
      "type": "string"
    },
    "author": {
      "type": "string",
      "description": "An absolute agent path or a reference relative to you."
    },
    "channel_name": {
      "type": "string"
    },
    "cursor": {
      "type": "string",
      "description": "Opaque next_cursor from the same query. Keep filters and sorting unchanged. Concurrent posts may shift pages; omit the cursor to refresh."
    },
    "limit": {
      "type": "integer",
      "description": "Maximum results, default 20; output budgets may return fewer. Continue with next_cursor."
    },
    "max_chars_per_post": {
      "type": "integer",
      "description": "Maximum characters; further capped by output budget. Defaults: limit_chars 20000, max_chars_per_post 1000."
    },
    "query": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.subscribeSubscribe yourself or another agent to a channel for new top-level posts, or to a thread for replies.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
channel_namestringNo
target_agentstringNoAn absolute agent path or a reference relative to you.
thread_idstringNo
Full input definition
{
  "type": "object",
  "properties": {
    "channel_name": {
      "type": "string"
    },
    "target_agent": {
      "type": "string",
      "description": "An absolute agent path or a reference relative to you."
    },
    "thread_id": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

collaboration.unsubscribeUnsubscribe yourself or another agent from a channel or thread.

Message-board extension installed; AgentMessageBoard + MultiAgentV2 and eligible storage, or explicit host connection. Host chooses namespace (collaboration shown here). Local SQLite, in-memory and remote backends share these contracts.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
channel_namestringNo
target_agentstringNoAn absolute agent path or a reference relative to you.
thread_idstringNo
Full input definition
{
  "type": "object",
  "properties": {
    "channel_name": {
      "type": "string"
    },
    "target_agent": {
      "type": "string",
      "description": "An absolute agent path or a reference relative to you."
    },
    "thread_id": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": false
}

ResultSource declaration

Full result definition
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostMetadata {
    pub message_id: Uuid,
    pub channel_name: String,
    pub author: AgentPath,
    pub thread_id: Uuid,
    pub created_at: DateTime<Utc>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostPreview {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text_preview: String,
    pub n_chars: usize,
    pub truncated: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct PostContent {
    #[serde(flatten)]
    pub metadata: PostMetadata,
    pub text: String,
    pub n_chars: usize,
    pub next_offset_chars: usize,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadSummary {
    pub thread_id: Uuid,
    pub root_post: PostPreview,
    pub reply_count: usize,
    pub last_activity_at: DateTime<Utc>,
    pub latest_reply: Option<PostPreview>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelSummary {
    /// Absent on boards without ACL metadata; preserve the legacy wire shape.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permissions: Option<ChannelPermissions>,
    pub channel_name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    pub created_at: DateTime<Utc>,
    pub created_by: AgentPath,
    pub message_count: usize,
    pub last_message_id: Option<Uuid>,
}

/// Channel discovery also exposes board actions, including when there are no channels.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPage {
    #[serde(flatten)]
    pub channels: Page<ChannelSummary>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub board_permissions: Option<BoardPermissions>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct SubscriptionState {
    pub channel_name: String,
    pub thread_id: Option<Uuid>,
    pub target_agent: AgentPath,
    pub enabled: bool,
    pub last_message_id: Option<Uuid>,
}

/// A bounded page. Counts and end-of-list markers are derived at serialization.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
pub struct Page<T> {
    pub results: Vec<T>,
    pub next_cursor: Option<String>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadPage {
    pub root_post: PostPreview,
    #[serde(flatten)]
    pub replies: Page<PostPreview>,
}

/// Effective board actions for the authenticated caller, not an ACL definition.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BoardPermissions {
    pub create_channel: bool,
    pub edit_metadata: bool,
    pub manage_permissions: bool,
}

/// Effective channel actions; replying does not imply permission to start a thread.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct ChannelPermissions {
    pub read: bool,
    pub post: bool,
    pub reply: bool,
    pub edit_metadata: bool,
}

/// A backend denial retained through the board's existing error interface.
#[derive(Clone, Debug, Serialize)]
#[serde(tag = "code", rename = "permission_denied")]
pub struct PermissionDenied {
    pub message: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
}

Sources

create_goalCreate a persisted thread goal.

App Server goal extension installed with state DB; Goals feature enabled. Mutations validate current goal state and token budget.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
objectivestringYesRequired. The concrete objective to start pursuing. This starts a new active goal when no goal exists or replaces the current goal when it is complete.
token_budgetintegerNoPositive token budget for the new goal. Omit unless explicitly requested.
Full input definition
{
  "type": "object",
  "properties": {
    "objective": {
      "type": "string",
      "description": "Required. The concrete objective to start pursuing. This starts a new active goal when no goal exists or replaces the current goal when it is complete."
    },
    "token_budget": {
      "type": "integer",
      "description": "Positive token budget for the new goal. Omit unless explicitly requested."
    }
  },
  "required": [
    "objective"
  ],
  "additionalProperties": false
}

ResultSource declaration

Serialized implementation response, not an advertised output schema. goal can be null; optional budget report depends on operation.

Full result definition
#[derive(Debug, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
struct GoalToolResponse {
    goal: Option<ThreadGoal>,
    remaining_tokens: Option<i64>,
    completion_budget_report: Option<String>,
}

#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "protocol/")]
pub enum ThreadGoalStatus {
    Active,
    Paused,
    Blocked,
    UsageLimited,
    BudgetLimited,
    Complete,
}

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "protocol/")]
pub struct ThreadGoal {
    pub thread_id: ThreadId,
    pub objective: String,
    pub status: ThreadGoalStatus,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    #[ts(optional)]
    pub token_budget: Option<i64>,
    pub tokens_used: i64,
    pub time_used_seconds: i64,
    pub created_at: i64,
    pub updated_at: i64,
}

Sources

get_goalGet the current goal for this thread, including status, budgets, token and elapsed-time usage, and remaining token budget.

App Server goal extension installed with state DB; Goals feature enabled. Mutations validate current goal state and token budget.

InputJSON Schema

Full input definition
{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

ResultSource declaration

Serialized implementation response, not an advertised output schema. goal can be null; optional budget report depends on operation.

Full result definition
#[derive(Debug, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
struct GoalToolResponse {
    goal: Option<ThreadGoal>,
    remaining_tokens: Option<i64>,
    completion_budget_report: Option<String>,
}

#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "protocol/")]
pub enum ThreadGoalStatus {
    Active,
    Paused,
    Blocked,
    UsageLimited,
    BudgetLimited,
    Complete,
}

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "protocol/")]
pub struct ThreadGoal {
    pub thread_id: ThreadId,
    pub objective: String,
    pub status: ThreadGoalStatus,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    #[ts(optional)]
    pub token_budget: Option<i64>,
    pub tokens_used: i64,
    pub time_used_seconds: i64,
    pub created_at: i64,
    pub updated_at: i64,
}

Sources

history.list_itemsList history items with optional window, role, and tool filters.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agent_name{"type":"string"} | {"type":"null"}NoAgent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.
limitintegerNoMaximum number of items to return.
max_chars_per_itemintegerNoMaximum characters returned in each item's truncated_content.
recent_firstbooleanNoWhether to return the most recently created items first.
role{"type":"string","enum":["user","assistant","tool","system","developer"]} | {"type":"null"}NoMessage role to include. Null or omission includes all roles.
tool_name{"type":"string"} | {"type":"null"}NoCallable tool name to include. When set, non-tool messages are excluded.
tool_namespace{"type":"string"} | {"type":"null"}NoCallable namespace to include. When set, non-tool messages are excluded.
window_id{"type":"string"} | {"type":"null"}NoFull window ID. Null or omission includes all windows.
Full input definition
{
  "type": "object",
  "properties": {
    "agent_name": {
      "description": "Agent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "description": "Maximum number of items to return."
    },
    "max_chars_per_item": {
      "type": "integer",
      "description": "Maximum characters returned in each item's truncated_content."
    },
    "recent_first": {
      "type": "boolean",
      "description": "Whether to return the most recently created items first."
    },
    "role": {
      "description": "Message role to include. Null or omission includes all roles.",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "user",
            "assistant",
            "tool",
            "system",
            "developer"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "tool_name": {
      "description": "Callable tool name to include. When set, non-tool messages are excluded.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tool_namespace": {
      "description": "Callable namespace to include. When set, non-tool messages are excluded.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_id": {
      "description": "Full window ID. Null or omission includes all windows.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

history.list_windowsList an agent's context windows as window ID and item-count pairs.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agent_name{"type":"string"} | {"type":"null"}NoAgent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.
limitintegerNoMaximum number of windows to return.
recent_firstbooleanNoWhether to return the most recently created windows first.
Full input definition
{
  "type": "object",
  "properties": {
    "agent_name": {
      "description": "Agent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "description": "Maximum number of windows to return."
    },
    "recent_first": {
      "type": "boolean",
      "description": "Whether to return the most recently created windows first."
    }
  }
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

history.read_itemRead a bounded range from private model-only history.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agent_name{"type":"string"} | {"type":"null"}NoAgent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.
item_idstringYesThe short item ID is the suffix shown in the target item's trailing [id: ...] marker, printed after that item's content.
limit_charsintegerNoMaximum number of characters to return.
offset_charsintegerNoZero-based character offset at which reading starts.
window_idstringYesFull window ID containing the item.
Full input definition
{
  "type": "object",
  "properties": {
    "agent_name": {
      "description": "Agent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "item_id": {
      "type": "string",
      "description": "The short item ID is the suffix shown in the target item's trailing `[id: ...]` marker, printed after that item's content."
    },
    "limit_chars": {
      "type": "integer",
      "description": "Maximum number of characters to return."
    },
    "offset_chars": {
      "type": "integer",
      "description": "Zero-based character offset at which reading starts."
    },
    "window_id": {
      "type": "string",
      "description": "Full window ID containing the item."
    }
  },
  "required": [
    "item_id",
    "window_id"
  ]
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

history.search_contentsSearch private model-only history by literal substring.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
agent_name{"type":"string"} | {"type":"null"}NoAgent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.
limitintegerNoMaximum number of matching items to return.
querystringYesCase-sensitive literal substring to find in item content.
recent_firstbooleanNoWhether to return the most recently created matches first.
role{"type":"string","enum":["user","assistant","tool","system","developer"]} | {"type":"null"}NoMessage role to include. Null or omission includes all roles.
tool_name{"type":"string"} | {"type":"null"}NoCallable tool name to include. When set, non-tool messages are excluded.
tool_namespace{"type":"string"} | {"type":"null"}NoCallable namespace to include. When set, non-tool messages are excluded.
window_id{"type":"string"} | {"type":"null"}NoFull window ID. Null or omission includes all windows.
Full input definition
{
  "type": "object",
  "properties": {
    "agent_name": {
      "description": "Agent whose history to inspect. Omit to use the current agent; otherwise pass an absolute agent name or a name relative to the current agent.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "description": "Maximum number of matching items to return."
    },
    "query": {
      "type": "string",
      "description": "Case-sensitive literal substring to find in item content.",
      "encrypted": true
    },
    "recent_first": {
      "type": "boolean",
      "description": "Whether to return the most recently created matches first."
    },
    "role": {
      "description": "Message role to include. Null or omission includes all roles.",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "user",
            "assistant",
            "tool",
            "system",
            "developer"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "tool_name": {
      "description": "Callable tool name to include. When set, non-tool messages are excluded.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tool_namespace": {
      "description": "Callable namespace to include. When set, non-tool messages are excluded.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "window_id": {
      "description": "Full window ID. Null or omission includes all windows.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "query"
  ]
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

image_gen.imagegenGenerate or edit an image using the configured image backend.

Installed image-generation contributor with eligible provider; core requires ImageGeneration, non-Free account, provider image_generation capability, image input modality, and either OpenAI actor authorization or requires_openai_auth with Codex-backend authentication.

InputSource declaration

Full source input declaration. AbsolutePathBuf serializes as an absolute path string. transparent_background defaults false; paths and num_last_images_to_include are alternative edit-reference mechanisms.

Full input definition
#[derive(Debug, Deserialize, JsonSchema)]
#[serde(deny_unknown_fields)]
struct ImagegenArgs {
    prompt: String,
    /// Whether the output should have a transparent background. Defaults to false.
    #[serde(default)]
    transparent_background: bool,
    #[schemars(length(max = 5))]
    referenced_image_paths: Option<Vec<AbsolutePathBuf>>,
    #[schemars(range(min = 1, max = 5))]
    num_last_images_to_include: Option<usize>,
}

ResultImplementation shape

Direct model output is image content; code-mode result exposes image_url and optional output_hint. No advertised output schema. Image bytes are omitted from logs.

Full result definition
struct GeneratedImageOutput {
    result: String,
    output_hint: Option<String>,
}

Sources

memories.add_ad_hoc_noteCreate a timestamped ad-hoc memory note.

Memories extension installed; MemoryTool + memories.use_memories + dedicated_tools. Concrete contributor uses LocalMemoriesBackend; backend trait separately supports custom implementations.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
filenamestringYesName of the note file to create, in YYYY-MM-DDTHH-MM-SS-<slug>.md format. The slug must use only lowercase ASCII letters, digits, and hyphens.
notestringYesVerbatim Markdown note to append to the ad-hoc memory notes.
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "filename": {
      "description": "Name of the note file to create, in YYYY-MM-DDTHH-MM-SS-<slug>.md format. The slug must use only lowercase ASCII letters, digits, and hyphens.",
      "maxLength": 128,
      "minLength": 24,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}-\\d{2}-\\d{2}-[a-z0-9][a-z0-9-]{0,79}\\.md$",
      "type": "string"
    },
    "note": {
      "description": "Verbatim Markdown note to append to the ad-hoc memory notes.",
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "filename",
    "note"
  ],
  "type": "object"
}

ResultJSON Schema

Full result definition
{
  "additionalProperties": false,
  "type": "object"
}

Failures and lifecycle

  • List max_results defaults/caps at 2000; search at 200; read max estimated tokens 20000. Backend rejects invalid paths/cursors/queries; IO failures are fatal. Ad-hoc note creation rejects invalid filenames, empty notes and collisions. No runtime probe.

Sources

memories.listPage memory-store entries.

Memories extension installed; MemoryTool + memories.use_memories + dedicated_tools. Concrete contributor uses LocalMemoriesBackend; backend trait separately supports custom implementations.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNo
max_resultsintegerNo
pathstringNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "type": "string"
    },
    "max_results": {
      "format": "uint",
      "minimum": 1.0,
      "type": "integer"
    },
    "path": {
      "type": "string"
    }
  },
  "type": "object"
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
entriesarrayYes
[].entry_type"file" | "directory"Yes
[].pathstringYes
next_cursor"string" | "null"No
path"string" | "null"No
truncatedbooleanYes
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "entries": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "entry_type": {
            "enum": [
              "file",
              "directory"
            ],
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "entry_type",
          "path"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "path": {
      "type": [
        "string",
        "null"
      ]
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "entries",
    "truncated"
  ],
  "type": "object"
}

Failures and lifecycle

  • List max_results defaults/caps at 2000; search at 200; read max estimated tokens 20000. Backend rejects invalid paths/cursors/queries; IO failures are fatal. Ad-hoc note creation rejects invalid filenames, empty notes and collisions. No runtime probe.

Sources

memories.readRead bounded memory file lines.

Memories extension installed; MemoryTool + memories.use_memories + dedicated_tools. Concrete contributor uses LocalMemoriesBackend; backend trait separately supports custom implementations.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
line_offsetintegerNo
max_linesintegerNo
pathstringYes
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "line_offset": {
      "format": "uint",
      "minimum": 1.0,
      "type": "integer"
    },
    "max_lines": {
      "format": "uint",
      "minimum": 1.0,
      "type": "integer"
    },
    "path": {
      "type": "string"
    }
  },
  "required": [
    "path"
  ],
  "type": "object"
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
contentstringYes
pathstringYes
start_line_numberintegerYes
truncatedbooleanYes
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "content": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "start_line_number": {
      "format": "uint",
      "minimum": 0.0,
      "type": "integer"
    },
    "truncated": {
      "type": "boolean"
    }
  },
  "required": [
    "content",
    "path",
    "start_line_number",
    "truncated"
  ],
  "type": "object"
}

Failures and lifecycle

  • List max_results defaults/caps at 2000; search at 200; read max estimated tokens 20000. Backend rejects invalid paths/cursors/queries; IO failures are fatal. Ad-hoc note creation rejects invalid filenames, empty notes and collisions. No runtime probe.

Sources

multi_env_copy_fileCopy a file between two execution environments.

App Server installs contributor only with MultiEnvCopyFile feature. Source/target must be different ready environments with captured permissions.

InputSource declaration

All four strings required; paths absolute. Source builder advertises additionalProperties=false.

Full input definition
#[derive(Deserialize)]
#[serde(deny_unknown_fields)]
struct CopyFileArgs {
    source_environment_id: String,
    source_path: String,
    target_environment_id: String,
    target_path: String,
}

ResultImplementation shape

Handler JSON acknowledgment; no formal output schema. Failed/interrupted copies may leave a partial target.

Full result definition
{ bytes_copied: number }

Sources

notes.append_to_fileAppend text to private model-only notes.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
pathstringYesNote file path to append to.
textstringYesText appended exactly as provided.
Full input definition
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "Note file path to append to."
    },
    "text": {
      "type": "string",
      "description": "Text appended exactly as provided.",
      "encrypted": true
    }
  },
  "required": [
    "text",
    "path"
  ]
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

notes.list_files_by_prefixList private model-only notes by path prefix.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
file_order"ascending" | "descending"NoDirection used to order files.
file_order_by"name" | "created_at" | "updated_at"NoField used to order files.
max_resultsintegerNoMaximum number of files to return.
prefix{"type":"string"} | {"type":"null"}NoNote path prefix to list.
Full input definition
{
  "type": "object",
  "properties": {
    "file_order": {
      "type": "string",
      "description": "Direction used to order files.",
      "enum": [
        "ascending",
        "descending"
      ]
    },
    "file_order_by": {
      "type": "string",
      "description": "Field used to order files.",
      "enum": [
        "name",
        "created_at",
        "updated_at"
      ]
    },
    "max_results": {
      "type": "integer",
      "description": "Maximum number of files to return."
    },
    "prefix": {
      "description": "Note path prefix to list.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

notes.read_fileRead all or a line range from private model-only notes.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
pathstringYesNote file path to read.
start_line{"type":"integer"} | {"type":"null"}NoFirst line to return, inclusive and 1-based. Negative values count backward from the final line.
stop_line{"type":"integer"} | {"type":"null"}NoLast line to return, inclusive and 1-based. Negative values count backward from the final line.
Full input definition
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "Note file path to read."
    },
    "start_line": {
      "description": "First line to return, inclusive and 1-based. Negative values count backward from the final line.",
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "stop_line": {
      "description": "Last line to return, inclusive and 1-based. Negative values count backward from the final line.",
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "path"
  ]
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

notes.search_contentsSearch private model-only note lines by literal substring.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
max_filesintegerNoMaximum number of matching files returned.
max_matches_per_fileintegerNoMaximum number of matching lines returned per file.
path_prefix{"type":"string"} | {"type":"null"}NoNote path prefix to search.
querystringYesCase-sensitive literal substring to find in note lines.
recent_file_firstbooleanNoWhether to order matching files by creation time, newest first.
Full input definition
{
  "type": "object",
  "properties": {
    "max_files": {
      "type": "integer",
      "description": "Maximum number of matching files returned."
    },
    "max_matches_per_file": {
      "type": "integer",
      "description": "Maximum number of matching lines returned per file."
    },
    "path_prefix": {
      "description": "Note path prefix to search.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "query": {
      "type": "string",
      "description": "Case-sensitive literal substring to find in note lines.",
      "encrypted": true
    },
    "recent_file_first": {
      "type": "boolean",
      "description": "Whether to order matching files by creation time, newest first."
    }
  },
  "required": [
    "query"
  ]
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

notes.write_fileCreate or replace private model-only notes.

App Server installs history-notes; token_budget.use_history_notes_extension + OpenAI provider + Codex-backend authentication. Hosted storage internals unavailable.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
pathstringYesNote file path to create or replace.
textstringYesComplete replacement text for the file.
Full input definition
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "Note file path to create or replace."
    },
    "text": {
      "type": "string",
      "description": "Complete replacement text for the file.",
      "encrypted": true
    }
  },
  "required": [
    "text",
    "path"
  ]
}

ResultPartial contract

Full result definition
Backend JSON Value; optionally encrypted_output: string and images: [{data, mime_type, detail}]

Sources

skills.installationsPage installations for a skill package.

Installed skills extension with SkillsStepState.tools_enabled; installations and source-aware read require discovery_v2. Executor, host, cloud and custom providers are framework kinds; concrete App Server registers executor/host and optional cloud. Model tools select supported cloud/executor authorities.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNo
packagestringYes
source{"additionalProperties":false,"properties":{"kind":{"enum":["cloud"],"type":"string"}},"required":["kind"],"type":"object"} | {"additionalProperties":false,"properties":{"environment_id":{"type":"string"},"kind":{"enum":["executor"],"type":"string"}},"required":["environment_id","kind"],"type":"object"}No
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "type": "string"
    },
    "package": {
      "type": "string"
    },
    "source": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "cloud"
              ],
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "environment_id": {
              "type": "string"
            },
            "kind": {
              "enum": [
                "executor"
              ],
              "type": "string"
            }
          },
          "required": [
            "environment_id",
            "kind"
          ],
          "type": "object"
        }
      ]
    }
  },
  "required": [
    "package"
  ],
  "type": "object"
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
installationsarrayYes
next_cursor"string" | "null"No
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "installations": {
      "items": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "package": {
                "type": "string"
              },
              "resource": {
                "type": "string"
              }
            },
            "required": [
              "package",
              "resource"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "environment_id": {
                "type": "string"
              },
              "skill_root": {
                "type": "string"
              }
            },
            "required": [
              "environment_id",
              "skill_root"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "installations"
  ],
  "type": "object"
}

Failures and lifecycle

  • Pagination uses opaque cursors; bounded responses may contain warnings/next_cursor. Handle/cursor/source validation can fail independently of provider IO; provider registration does not establish hosted availability.

Sources

skills.listPage a selected skill authority catalog.

Installed skills extension with SkillsStepState.tools_enabled; installations and source-aware read require discovery_v2. Executor, host, cloud and custom providers are framework kinds; concrete App Server registers executor/host and optional cloud. Model tools select supported cloud/executor authorities.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
authority{"additionalProperties":false,"properties":{"kind":{"enum":["cloud"],"type":"string"}},"required":["kind"],"type":"object"} | {"additionalProperties":false,"properties":{"kind":{"enum":["executor"],"type":"string"}},"required":["kind"],"type":"object"}Yes
cursorstringNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "authority": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "cloud"
              ],
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "executor"
              ],
              "type": "string"
            }
          },
          "required": [
            "kind"
          ],
          "type": "object"
        }
      ]
    },
    "cursor": {
      "type": "string"
    }
  },
  "required": [
    "authority"
  ],
  "type": "object"
}

ResultJSON Schema

FieldTypeRequiredMeaning and defaults
next_cursor"string" | "null"No
skillsarrayYes
[].authorityobject | objectYes
[].descriptionstringYes
[].main_resourcestringYes
[].namestringYes
[].packagestringYes
warningsarrayYes
Full result definition
{
  "additionalProperties": false,
  "properties": {
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "skills": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "authority": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "enum": [
                      "cloud"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "enum": [
                      "executor"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "kind"
                ],
                "type": "object"
              }
            ]
          },
          "description": {
            "type": "string"
          },
          "main_resource": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "package": {
            "type": "string"
          }
        },
        "required": [
          "authority",
          "description",
          "main_resource",
          "name",
          "package"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "skills",
    "warnings"
  ],
  "type": "object"
}

Failures and lifecycle

  • Pagination uses opaque cursors; bounded responses may contain warnings/next_cursor. Handle/cursor/source validation can fail independently of provider IO; provider registration does not establish hosted availability.

Sources

skills.readRead a skill resource.

Installed skills extension with SkillsStepState.tools_enabled; installations and source-aware read require discovery_v2. Executor, host, cloud and custom providers are framework kinds; concrete App Server registers executor/host and optional cloud. Model tools select supported cloud/executor authorities.

InputJSON Schema

Reference union of legacy and discovery_v2 constructor schemas. Runtime advertises one variant; discovery_v2 adds source/installation metadata. SkillLocator is exposed as String via schemars(with="String").

Full input definition
{
  "anyOf": [
    {
      "properties": {
        "cursor": {
          "type": "string"
        },
        "package": {
          "type": "string"
        },
        "resource": {
          "type": "string"
        }
      },
      "required": [
        "package"
      ],
      "type": "object"
    },
    {
      "properties": {
        "cursor": {
          "type": "string"
        },
        "package": {
          "type": "string"
        },
        "resource": {
          "type": "string"
        },
        "source": {
          "oneOf": [
            {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "enum": [
                    "cloud"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            {
              "additionalProperties": false,
              "properties": {
                "environment_id": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "executor"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "environment_id",
                "kind"
              ],
              "type": "object"
            }
          ]
        }
      },
      "required": [
        "package"
      ],
      "type": "object"
    }
  ]
}

ResultJSON Schema

Reference union of legacy and discovery_v2 constructor schemas. Runtime advertises one variant; discovery_v2 adds source/installation metadata. SkillLocator is exposed as String via schemars(with="String").

Full result definition
{
  "anyOf": [
    {
      "properties": {
        "contents": {
          "type": "string"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "resource": {
          "type": "string"
        },
        "skill_root": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "contents",
        "resource"
      ],
      "type": "object"
    },
    {
      "properties": {
        "contents": {
          "type": "string"
        },
        "installations": {
          "items": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "package": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  }
                },
                "required": [
                  "package",
                  "resource"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "environment_id": {
                    "type": "string"
                  },
                  "skill_root": {
                    "type": "string"
                  }
                },
                "required": [
                  "environment_id",
                  "skill_root"
                ],
                "type": "object"
              }
            ]
          },
          "type": "array"
        },
        "installations_truncated": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "resource": {
          "type": "string"
        }
      },
      "required": [
        "contents",
        "installations",
        "installations_truncated",
        "resource"
      ],
      "type": "object"
    }
  ]
}

Failures and lifecycle

  • Pagination uses opaque cursors; bounded responses may contain warnings/next_cursor. Handle/cursor/source validation can fail independently of provider IO; provider registration does not establish hosted availability.

Sources

update_goalUpdate the current goal status.

App Server goal extension installed with state DB; Goals feature enabled. Mutations validate current goal state and token budget.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
status"complete" | "blocked" | "paused"YesRequired. paused requires an explicit user request. Set to complete only when the objective is achieved and no required work remains. Set to blocked only after the same blocking condition has recurred for at least three consecutive goal turns and the agent is at an impasse. After a previously blocked goal is resumed, the resumed run starts a fresh blocked audit.
Full input definition
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "description": "Required. `paused` requires an explicit user request. Set to `complete` only when the objective is achieved and no required work remains. Set to `blocked` only after the same blocking condition has recurred for at least three consecutive goal turns and the agent is at an impasse. After a previously blocked goal is resumed, the resumed run starts a fresh blocked audit.",
      "enum": [
        "complete",
        "blocked",
        "paused"
      ]
    }
  },
  "required": [
    "status"
  ],
  "additionalProperties": false
}

ResultSource declaration

Serialized implementation response, not an advertised output schema. goal can be null; optional budget report depends on operation.

Full result definition
#[derive(Debug, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
struct GoalToolResponse {
    goal: Option<ThreadGoal>,
    remaining_tokens: Option<i64>,
    completion_budget_report: Option<String>,
}

#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "protocol/")]
pub enum ThreadGoalStatus {
    Active,
    Paused,
    Blocked,
    UsageLimited,
    BudgetLimited,
    Complete,
}

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export_to = "protocol/")]
pub struct ThreadGoal {
    pub thread_id: ThreadId,
    pub objective: String,
    pub status: ThreadGoalStatus,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    #[ts(optional)]
    pub token_budget: Option<i64>,
    pub tokens_used: i64,
    pub time_used_seconds: i64,
    pub created_at: i64,
    pub updated_at: i64,
}

Sources

web.runExecute standalone search, page, image, PDF, finance, weather, sports or time commands.

Registered web-search contributor; eligible OpenAI/actor/custom supports_standalone_web_search provider and web search not disabled. Core chooses StandaloneWebSearch or compatible model metadata; hosted web_search is a separate alternative.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
clickarrayNoOpen links from previously opened pages.
[].idintegerYesNumbered link id to open.
[].ref_idstringYesReference id containing the numbered link.
financearrayNoLook up prices for the given stock symbols.
[].marketstringNoISO 3166-1 alpha-3 country code, "OTC", or "" for cryptocurrency.
[].tickerstringYesTicker symbol to look up.
[].type"equity" | "fund" | "crypto" | "index"YesAsset type to look up.
findarrayNoFind text patterns in pages.
[].patternstringYesText pattern to find.
[].ref_idstringYesReference id or URL to search within.
image_queryarrayNoQuery the image search engine for a given list of queries.
[].domainsstring[]NoWhether to filter by a specific list of domains.
[].qstringYesSearch query.
[].recencyintegerNoWhether to filter by recency, as a number of recent days.
openarrayNoOpen pages by reference id or URL.
[].linenointegerNoLine number to position the page at.
[].ref_idstringYesReference id or URL to open.
response_length"short" | "medium" | "long"NoSet the length of the response to be returned.
screenshotarrayNoTake screenshots of PDF pages.
[].pagenointegerYesZero-indexed PDF page number.
[].ref_idstringYesReference id or URL to screenshot.
search_queryarrayNoQuery the internet search engine for a given list of queries.
[].domainsstring[]NoWhether to filter by a specific list of domains.
[].qstringYesSearch query.
[].recencyintegerNoWhether to filter by recency, as a number of recent days.
sportsarrayNoLook up sports schedules and standings.
[].date_fromstringNoStart date in YYYY-MM-DD format.
[].date_tostringNoEnd date in YYYY-MM-DD format.
[].fn"schedule" | "standings"YesSports function to call.
[].league"nba" | "wnba" | "nfl" | "nhl" | "mlb" | "epl" | "ncaamb" | "ncaawb" | "ipl"YesLeague to look up.
[].localestringNoLocale for the lookup.
[].num_gamesintegerNoNumber of games to return.
[].opponentstringNoOpponent to use with team when narrowing the lookup.
[].teamstringNoTeam to look up, using the common 3 or 4 letter alias used in broadcasts.
[].tool"sports"NoTool name for sports requests.
timearrayNoGet time for the given UTC offsets.
[].utc_offsetstringYesUTC offset formatted like "+03:00".
weatherarrayNoLook up weather forecasts.
[].durationintegerNoNumber of days to return. Defaults to 7.
[].locationstringYesLocation in "Country, Area, City" format.
[].startstringNoStart date in YYYY-MM-DD format. Defaults to today.
Full input definition
{
  "properties": {
    "click": {
      "description": "Open links from previously opened pages.",
      "items": {
        "properties": {
          "id": {
            "description": "Numbered link id to open.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "ref_id": {
            "description": "Reference id containing the numbered link.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "ref_id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "finance": {
      "description": "Look up prices for the given stock symbols.",
      "items": {
        "properties": {
          "market": {
            "description": "ISO 3166-1 alpha-3 country code, \"OTC\", or \"\" for cryptocurrency.",
            "type": "string"
          },
          "ticker": {
            "description": "Ticker symbol to look up.",
            "type": "string"
          },
          "type": {
            "description": "Asset type to look up.",
            "enum": [
              "equity",
              "fund",
              "crypto",
              "index"
            ],
            "type": "string"
          }
        },
        "required": [
          "ticker",
          "type"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "find": {
      "description": "Find text patterns in pages.",
      "items": {
        "properties": {
          "pattern": {
            "description": "Text pattern to find.",
            "type": "string"
          },
          "ref_id": {
            "description": "Reference id or URL to search within.",
            "type": "string"
          }
        },
        "required": [
          "pattern",
          "ref_id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "image_query": {
      "description": "Query the image search engine for a given list of queries.",
      "items": {
        "properties": {
          "domains": {
            "description": "Whether to filter by a specific list of domains.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "q": {
            "description": "Search query.",
            "type": "string"
          },
          "recency": {
            "description": "Whether to filter by recency, as a number of recent days.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          }
        },
        "required": [
          "q"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "open": {
      "description": "Open pages by reference id or URL.",
      "items": {
        "properties": {
          "lineno": {
            "description": "Line number to position the page at.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "ref_id": {
            "description": "Reference id or URL to open.",
            "type": "string"
          }
        },
        "required": [
          "ref_id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "response_length": {
      "description": "Set the length of the response to be returned.",
      "enum": [
        "short",
        "medium",
        "long"
      ],
      "type": "string"
    },
    "screenshot": {
      "description": "Take screenshots of PDF pages.",
      "items": {
        "properties": {
          "pageno": {
            "description": "Zero-indexed PDF page number.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "ref_id": {
            "description": "Reference id or URL to screenshot.",
            "type": "string"
          }
        },
        "required": [
          "pageno",
          "ref_id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "search_query": {
      "description": "Query the internet search engine for a given list of queries.",
      "items": {
        "properties": {
          "domains": {
            "description": "Whether to filter by a specific list of domains.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "q": {
            "description": "Search query.",
            "type": "string"
          },
          "recency": {
            "description": "Whether to filter by recency, as a number of recent days.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          }
        },
        "required": [
          "q"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "sports": {
      "description": "Look up sports schedules and standings.",
      "items": {
        "properties": {
          "date_from": {
            "description": "Start date in YYYY-MM-DD format.",
            "type": "string"
          },
          "date_to": {
            "description": "End date in YYYY-MM-DD format.",
            "type": "string"
          },
          "fn": {
            "description": "Sports function to call.",
            "enum": [
              "schedule",
              "standings"
            ],
            "type": "string"
          },
          "league": {
            "description": "League to look up.",
            "enum": [
              "nba",
              "wnba",
              "nfl",
              "nhl",
              "mlb",
              "epl",
              "ncaamb",
              "ncaawb",
              "ipl"
            ],
            "type": "string"
          },
          "locale": {
            "description": "Locale for the lookup.",
            "type": "string"
          },
          "num_games": {
            "description": "Number of games to return.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "opponent": {
            "description": "Opponent to use with `team` when narrowing the lookup.",
            "type": "string"
          },
          "team": {
            "description": "Team to look up, using the common 3 or 4 letter alias used in broadcasts.",
            "type": "string"
          },
          "tool": {
            "description": "Tool name for sports requests.",
            "enum": [
              "sports"
            ],
            "type": "string"
          }
        },
        "required": [
          "fn",
          "league"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "time": {
      "description": "Get time for the given UTC offsets.",
      "items": {
        "properties": {
          "utc_offset": {
            "description": "UTC offset formatted like \"+03:00\".",
            "type": "string"
          }
        },
        "required": [
          "utc_offset"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "weather": {
      "description": "Look up weather forecasts.",
      "items": {
        "properties": {
          "duration": {
            "description": "Number of days to return. Defaults to 7.",
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "location": {
            "description": "Location in \"Country, Area, City\" format.",
            "type": "string"
          },
          "start": {
            "description": "Start date in YYYY-MM-DD format. Defaults to today.",
            "type": "string"
          }
        },
        "required": [
          "location"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

ResultFree-form result

Plaintext FunctionCallOutput content. Citations and domain-specific text are service outputs, not a stable result object schema.

Full result definition
SearchOutput { output: String }

Sources

Host app

Injected by the Codex TUI into the threads it runs.

codex_tui.create_threadCreate and start a task.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
modelstringNo
promptstringYesMaximum 1,000 UTF-8 bytes.
titlestringNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "model": {
      "minLength": 1,
      "type": "string"
    },
    "prompt": {
      "description": "Maximum 1,000 UTF-8 bytes.",
      "maxLength": 1000,
      "minLength": 1,
      "type": "string"
    },
    "title": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "prompt"
  ],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.fork_threadFork a task.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
threadIdstringNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "threadId": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.list_archived_threadsList archived tasks.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNo
limitintegerNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "type": "string"
    },
    "limit": {
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.list_threadsList active tasks.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
limitintegerNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "limit": {
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.read_threadRead a task page.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNo
includeOutputsbooleanNo
maxOutputCharsPerItemintegerNo
threadIdstringYes
turnLimitintegerNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "type": "string"
    },
    "includeOutputs": {
      "type": "boolean"
    },
    "maxOutputCharsPerItem": {
      "maximum": 20000,
      "minimum": 0,
      "type": "integer"
    },
    "threadId": {
      "minLength": 1,
      "type": "string"
    },
    "turnLimit": {
      "maximum": 10,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "threadId"
  ],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.send_message_to_threadSend a prompt to a task.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
modelstringNo
promptstringYesMaximum 1,000 UTF-8 bytes.
threadIdstringYes
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "model": {
      "minLength": 1,
      "type": "string"
    },
    "prompt": {
      "description": "Maximum 1,000 UTF-8 bytes.",
      "maxLength": 1000,
      "minLength": 1,
      "type": "string"
    },
    "threadId": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "threadId",
    "prompt"
  ],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.set_thread_archivedArchive or restore a task.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
archivedbooleanYes
threadIdstringNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "archived": {
      "type": "boolean"
    },
    "threadId": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "archived"
  ],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.set_thread_titleRename a task.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
threadIdstringNo
titlestringYes
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "threadId": {
      "minLength": 1,
      "type": "string"
    },
    "title": {
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "title"
  ],
  "type": "object"
}

ResultSchema unavailable

Sources

codex_tui.wait_threadsWait for task progress.

TUI tool_specs() injects a DynamicToolSpec namespace into its App Server thread. Delegation tools can be filtered by non_delegation_tool_specs(); not a core or universal desktop tool.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
targetsarrayYes
[].afterCursorstringNo
[].threadIdstringYes
timeoutMsintegerNo
Full input definition
{
  "additionalProperties": false,
  "properties": {
    "targets": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "afterCursor": {
            "type": "string"
          },
          "threadId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "threadId"
        ],
        "type": "object"
      },
      "maxItems": 8,
      "minItems": 1,
      "type": "array"
    },
    "timeoutMs": {
      "maximum": 120000,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "targets"
  ],
  "type": "object"
}

ResultSchema unavailable

Sources

MCP client

Work with resources on connected MCP servers.

list_mcp_resource_templatesLists resource templates provided by MCP servers.

Configured MCP servers or CodeModeOnly mode. These are native MCP resource client helpers, not server tools/list results. Model catalog may override parameters.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNoOpaque cursor from a previous list_mcp_resource_templates call; omit for the first page.
serverstringNoMCP server name. Omit to list resource templates from every configured server.
Full input definition
{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "description": "Opaque cursor from a previous list_mcp_resource_templates call; omit for the first page."
    },
    "server": {
      "type": "string",
      "description": "MCP server name. Omit to list resource templates from every configured server."
    }
  },
  "additionalProperties": false
}

ResultSource declaration

Implementation serde envelope: camelCase list keys (nextCursor/resourceTemplates), server tagging and flattened resource records. Referenced Resource/ResourceTemplate/ReadResourceResult come from rmcp protocol types; server content remains dynamic, not exhaustively reproduced here.

Full result definition
#[derive(Debug, Serialize)]
struct ResourceWithServer<T> {
    server: String,
    #[serde(flatten)]
    resource: T,
}

#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
struct ListResourceTemplatesPayload {
    #[serde(skip_serializing_if = "Option::is_none")]
    server: Option<String>,
    resource_templates: Vec<ResourceWithServer<ResourceTemplate>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    next_cursor: Option<String>,
}

Sources

list_mcp_resourcesLists resources provided by MCP servers.

Configured MCP servers or CodeModeOnly mode. These are native MCP resource client helpers, not server tools/list results. Model catalog may override parameters.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
cursorstringNoOpaque cursor from a previous list_mcp_resources call; omit for the first page.
serverstringNoMCP server name. Omit to list resources from every configured server.
Full input definition
{
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "description": "Opaque cursor from a previous list_mcp_resources call; omit for the first page."
    },
    "server": {
      "type": "string",
      "description": "MCP server name. Omit to list resources from every configured server."
    }
  },
  "additionalProperties": false
}

ResultSource declaration

Implementation serde envelope: camelCase list keys (nextCursor/resourceTemplates), server tagging and flattened resource records. Referenced Resource/ResourceTemplate/ReadResourceResult come from rmcp protocol types; server content remains dynamic, not exhaustively reproduced here.

Full result definition
#[derive(Debug, Serialize)]
struct ResourceWithServer<T> {
    server: String,
    #[serde(flatten)]
    resource: T,
}

#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
struct ListResourcesPayload {
    #[serde(skip_serializing_if = "Option::is_none")]
    server: Option<String>,
    resources: Vec<ResourceWithServer<Resource>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    next_cursor: Option<String>,
}

Sources

read_mcp_resourceRead a specific resource from an MCP server given the server name and resource URI.

Configured MCP servers or CodeModeOnly mode. These are native MCP resource client helpers, not server tools/list results. Model catalog may override parameters.

InputJSON Schema

FieldTypeRequiredMeaning and defaults
serverstringYesMCP server name exactly as configured. Must match the 'server' field returned by list_mcp_resources.
uristringYesResource URI to read. Must be one of the URIs returned by list_mcp_resources.
Full input definition
{
  "type": "object",
  "properties": {
    "server": {
      "type": "string",
      "description": "MCP server name exactly as configured. Must match the 'server' field returned by list_mcp_resources."
    },
    "uri": {
      "type": "string",
      "description": "Resource URI to read. Must be one of the URIs returned by list_mcp_resources."
    }
  },
  "required": [
    "server",
    "uri"
  ],
  "additionalProperties": false
}

ResultSource declaration

Implementation serde envelope: camelCase list keys (nextCursor/resourceTemplates), server tagging and flattened resource records. Referenced Resource/ResourceTemplate/ReadResourceResult come from rmcp protocol types; server content remains dynamic, not exhaustively reproduced here.

Full result definition
#[derive(Debug, Serialize)]
struct ResourceWithServer<T> {
    server: String,
    #[serde(flatten)]
    resource: T,
}

#[derive(Debug, Serialize)]
struct ReadResourcePayload {
    server: String,
    uri: String,
    #[serde(flatten)]
    result: ReadResourceResult,
}

Sources

user_message.read_messagesGuardian conversation-history adapter over a host-owned Apps MCP tool.

Guardian review session; parent Apps + GuardianConversationHistoryTools; live parent binding contains user_message.read_messages. Not a standalone fixed-schema native implementation.

InputSchema unavailable

Input schema copied from the live parent MCP catalog; not available in the public static source.

ResultSchema unavailable

Live MCP result bounded by guardian_conversation_history_max_output_tokens (default 4000); server result schema unavailable.

Sources

user_message.search_messagesGuardian conversation-history adapter over a host-owned Apps MCP tool.

Guardian review session; parent Apps + GuardianConversationHistoryTools; live parent binding contains user_message.search_messages. Not a standalone fixed-schema native implementation.

InputSchema unavailable

Input schema copied from the live parent MCP catalog; not available in the public static source.

ResultSchema unavailable

Live MCP result bounded by guardian_conversation_history_max_output_tokens (default 4000); server result schema unavailable.

Sources

Provider-hosted

Run by the model provider rather than the harness.

How the Codex CLI contracts were sourced

Checked 2026-10-27 against source revision 6aaac694803004a63c6f393d153c96d22521a6b9. Inputs: 70 JSON Schema; 2 Source declaration; 2 Freeform grammar; 3 Schema unavailable. Results: 21 JSON Schema; 19 Source declaration; 6 Implementation shape; 10 Free-form result; 9 Partial contract; 12 Schema unavailable.

  • No model-driven runtime probe was run.
  • Arbitrary host extensions, dynamic tools, MCP servers and future/closed-source tools are open-ended; universal inventory completeness is not claimed.
  • Hosted service internals and runtime catalog overrides are not established by source/type inspection.
  • FunctionCallError::RespondToModel produces a model-facing error; fatal infrastructure failures abort execution. Tool approval, hook, sandbox and cancellation outcomes are separate from a successful result; no error union is implied by an output schema.
  • Source constructor JSON Schema. Defaults and bounds in descriptions are prose unless a validation keyword also encodes them.
  • Exact TUI tool_specs builder properties/required/bounds, evaluated in isolation. Host handler uses camelCase keys. ListArguments accepts cursor internally, but list_threads advertises limit only.
  • Host returns per-operation JSON/content and success flags. Formal exhaustive result schema unavailable; see dynamic tool handler.
  • Implementation serde types. create_channel -> ChannelSummary; get_channels -> ChannelPage; list_threads -> Page<ThreadSummary>; search_posts -> Page<PostPreview>; read_thread -> ThreadPage; read_post -> PostContent; post -> PostMetadata; subscribe/unsubscribe -> SubscriptionState. Page serializes results,n_returned,has_more,next_cursor. AgentPath/UUID are string identities and DateTime UTC is serialized timestamp.
  • Arguments over 128 KiB rejected; responses bounded to 8000 bytes or caller budget. PermissionDenied produces {error:{code:"permission_denied",message,action?,resource?,truncated?}} with success=false, preserving backend denial. Notifications do not start idle agents.
  • Client handles encrypted output and separates image attachments. Hosted service result fields, complete error union and server enforcement are unavailable; do not invent domain result schemas.
  • Generated from unchanged serde/schemars source declarations with schemars 0.8.22 and the source schema_for transform (option_add_null_type=false). This is isolated contract generation, not a runtime tool probe.
  • Generated from source output types and output_schema_for(option_add_null_type=true); not an error/denial union.