PGAP
The wire protocol between a plugin and the host, message by message.
Generated Tracks the alpha branch, so it can be ahead of the release you have installed.
PGAP (Plexi Generic API Protocol) describes messages between plugins and the
Plexi host. The Python adapter bridges these JSON messages into host services.
Rust WASM components use the typed contract in wit/plexi.wit.
How It Works
Opening a view starts its plugin runtime. The plugin returns a UI tree; the host paints it and delivers input events for the containing pane.
Host ──render request──► Plugin
Host ◄──UI tree───────── Plugin
Host ──input event──────► Plugin
The host owns the render loop. When a view needs rendering, the host asks its runtime for a fresh set of draw commands and composites them into the UI.
Every message is a JSON object with a type discriminant field. The schema
version is 3 — see sdk/protocol/pgap.schema.json for the full
machine-readable definition.
Capabilities
Every plugin declares its capabilities in manifest.toml. The host enforces
these at runtime:
[plugin.capabilities]
capabilities = ["secrets.get", "net.http"]
Capabilities gate host APIs. Python uses the CPython WASI adapter; Rust components use typed WIT imports. These are distinct runtime paths with their own admission and permission checks. The Cap column shows the declared capability associated with each request; other scope and broker checks can still apply. See the runtime contract.
The Python SDK
The Python SDK uses module-level init, update, and view functions.
view() returns a component tree; PluginHarness exercises the lifecycle.
See the SDK reference for the full API.
App → Host Requests
App-to-host requests — go to route_command.
Messages the app sends to request host services.
spawn_receipt
Hold this connection open for the reply to a queued spawn. The queue entry names the same token; the host answers her…
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
show_host
Reveal and focus the running host window for a second app launch.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
context_rename
Rename a context through the same commit handler as the desktop editor.
| Field | Type | Required |
|---|---|---|
context_id | integer | yes |
name | string | yes |
response_file | string | yes |
context_close
Close a context, honoring the desktop confirmation policy.
| Field | Type | Required |
|---|---|---|
context_id | integer | yes |
response_file | string | yes |
context_park
Set a context’s parked state.
| Field | Type | Required |
|---|---|---|
context_id | integer | yes |
parked | boolean | yes |
response_file | string | yes |
pane_zoom
Focus a pane and toggle its zoom, including portal navigation.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
pane_swap
Focus a pane and swap it with its directional neighbor.
| Field | Type | Required |
|---|---|---|
direction | string | yes |
pane_id | integer | yes |
response_file | string | yes |
workspace_snapshot
Read the active workspace layout without pane content.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
reload_config
Reload the running host configuration from disk.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
focus_history
Step through the host’s pane focus history.
| Field | Type | Required |
|---|---|---|
forward | boolean | yes |
response_file | string | yes |
resource_lease
Process-lifetime resource admission. The holder must be in the kernel-witnessed lineage of the caller.
| Field | Type | Required |
|---|---|---|
holder_pid | integer | yes |
max | integer? | no |
name | string? | no |
op | string | yes |
response_file | string | yes |
submit_assistant_turn
Submit one text turn to the Assistant. With pane_id omitted the host reuses an Assistant in the context or creates …
| Field | Type | Required |
|---|---|---|
client | string? | no |
context_id | integer? | no |
conversation_id | string? | no |
join_desktop | boolean | no |
kind | string? | no |
pane_id | integer? | no |
request_id | string | yes |
response_file | string | yes |
status_for | string? | no |
text | string | yes |
agents_dashboard
Read or steer the command view. op is list, open, or cancel. Cancel finishes that run before the next tool.
| Field | Type | Required |
|---|---|---|
op | string | yes |
payload | any | no |
response_file | string | yes |
assistant_host_tool
Run one Assistant host tool (host.files.edit, host.editors.list, …) through the same permission gate the desktop …
| Field | Type | Required |
|---|---|---|
input_json | string | yes |
name | string | yes |
response_file | string | yes |
capability_request
Request a runtime capability prompt. Host shows modal; responds with CapabilityDecision.
| Field | Type | Required |
|---|---|---|
capability | string | yes |
request_id | string | yes |
plugin_secret_get
Request a workspace-scoped secret. Scoped to Init.workspace_root automatically.
| Field | Type | Required |
|---|---|---|
key | string | yes |
file_read
Read a file through the native WASM plugin runtime host. Requires fs.read and the resolved path must stay inside th…
Capability: fs.read
| Field | Type | Required |
|---|---|---|
path | string | yes |
file_list
List a directory through the native WASM plugin runtime host. Requires fs.read and the resolved path must stay insi…
Capability: fs.read
| Field | Type | Required |
|---|---|---|
extensions | string[] | no |
path | string | yes |
save_plugin_state
Save plugin state. Host writes to workspace or global JSON file.
| Field | Type | Required |
|---|---|---|
payload | any | yes |
run_get
Request to start a run. Host surfaces in Run palette (Cmd+R).
| Field | Type | Required |
|---|---|---|
intent | string | yes |
payload | any | yes |
run_complete
Signal that a run the plugin owns has finished.
| Field | Type | Required |
|---|---|---|
result | any | yes |
run_id | string | yes |
notify
Post a PGAP notification. PGAP is the rich producer contract: it supports Message, Choice, and Input, plus options, s…
| Field | Type | Required |
|---|---|---|
actions | NotificationAction[] | no |
body | string | yes |
image_inline | variant | no |
image_pipe_id | string? | no |
input_prompt | string? | no |
kind | NotifyKind | no |
notify_id | string? | no |
on_dismiss | string? | no |
options | NotifyOption[] | no |
required | boolean | no |
response_file | string? | no |
scope | variant | no |
timeout_secs | integer? | no |
title | string | yes |
dismiss_notification
Remove a notification posted by the caller. The host verifies the caller identity against the notification’s stamped …
| Field | Type | Required |
|---|---|---|
notify_id | string | yes |
response_file | string | yes |
set_agent_state
Report agent state for a pane. Called by hook scripts via plexi agent report.
| Field | Type | Required |
|---|---|---|
agent | string | yes |
blocked_reason | variant | no |
detail | string? | no |
event | string? | no |
pane_id | integer | yes |
session_id | string? | no |
state | AgentState | yes |
set_pip_status
Report a plugin’s own pip status (red/yellow/green) for its activity dot. Fire-and-forget; set by the plugin process …
| Field | Type | Required |
|---|---|---|
pane_id | integer | no |
status | PipStatus | yes |
get_agent_states
Get all tracked pane agent states. Writes JSON array to response_file.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
pipe_open
Open a typed pipe. mode: “json” | “binary” direction: “in” | “out” | “duplex”
| Field | Type | Required |
|---|---|---|
direction | string | yes |
mode | string | yes |
pipe_id | string | yes |
pipe_open_directed
Open a directed JSON pipe to a specific target pane (#286).
| Field | Type | Required |
|---|---|---|
pipe_id | string | yes |
request_id | string | yes |
target_pane_id | integer | yes |
pipe_send
Send a JSON message on directed pipe connection generation. A send naming a pipe instead of a generation is rejecte…
| Field | Type | Required |
|---|---|---|
generation | integer | yes |
payload | any | yes |
status_summary
Status text for the pane. The host accepts and discards it today; nothing shows it.
| Field | Type | Required |
|---|---|---|
text | string | yes |
log_marker
Write one info-level marker line into the running host’s channel log (~/.plexi-<channel>/plexi.log). Sent by `plexi…
| Field | Type | Required |
|---|---|---|
message | string | yes |
response_file | string? | no |
source | string | yes |
spawn_view
Request the host to spawn a new view pane. Requires spawn.plugin capability. layout: “split_h” (new pane right), …
Capability: spawn.plugin
| Field | Type | Required |
|---|---|---|
args | string[] | no |
layout | string? | no |
type_id | string | yes |
spawn_pane
Unified pane spawn primitive (#592). Supersedes SpawnView for new plugins. Requires panes.spawn capability. `layout…
Capability: panes.spawn
| Field | Type | Required |
|---|---|---|
agent_cmd | string? | no |
args | string[] | no |
boot_timeout_secs | number? | no |
context_name | string? | no |
cwd | string? | no |
ephemeral | boolean | no |
from_pane_id | integer? | no |
layout | string? | no |
name | string? | no |
no_focus | boolean | no |
path | string? | no |
request_id | string? | no |
response_file | string? | no |
result_schema | any | no |
target_context | integer? | no |
type_id | string | yes |
workspace_root | string? | no |
worktree | string? | no |
set_pane_title
Set the title displayed on a terminal pane’s tab. Sent by plexi pane set-title over PLEXI_SOCKET.
| Field | Type | Required |
|---|---|---|
name | string | yes |
pane_id | integer | yes |
get_build_info
Return the running executable’s immutable build identity.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
list_panes
List all open panes. Host writes a JSON array to response_file. Sent by plexi pane list.
| Field | Type | Required |
|---|---|---|
context_id | integer? | no |
response_file | string | yes |
list_contexts
List all open contexts. Host writes a JSON array to response_file. Sent by plexi context list.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
get_pane_info
Query info for a specific pane by ID. Host writes JSON object to response_file. Sent by plexi pane info.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
get_previous_pane_info
Query info for the previously focused pane. Host walks pane_focus_history from the end, finds the Nth live entry, a…
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
steps | integer | no |
list_permissions
List permission state across plugins (stint 0017). No gate: any socket caller can send it, and nothing checks `permis…
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
slot_write
Write bytes to a named host-managed pane file slot.
| Field | Type | Required |
|---|---|---|
append | boolean | yes |
content | integer[] | yes |
pane_id | integer | yes |
replace | boolean | yes |
response_file | string | yes |
slot_name | string | yes |
slot_read
Read raw bytes from a named host-managed pane file slot.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
slot_name | string | yes |
slot_wait
Block until a named pane file slot’s value matches pattern.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
pattern | string | yes |
response_file | string | yes |
slot_name | string | yes |
timeout_secs | number | yes |
slot_list
List named host-managed pane file slots.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
slot_delete
Delete a named host-managed pane file slot.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
slot_name | string | yes |
workspace_clean_slots
Remove slot files for pane ids that are no longer live in any window.
| Field | Type | Required |
|---|---|---|
dry_run | boolean | yes |
response_file | string | yes |
pane_message_send
Append a structured message to a pane’s host-managed FIFO inbox.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
payload | string | yes |
response_file | string | yes |
submit | boolean | no |
pane_message_recv
Drain all queued messages from a pane’s host-managed FIFO inbox.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
timeout_secs | number | no |
wait | boolean | no |
pane_result_schema_set
Declare or update the JSON Schema for a pane’s structured return value before a result is committed (`plexi pane resu…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
schema | any | yes |
pane_result_write
Validate and commit a pane’s structured JSON result once (plexi pane result write, stint 0666). Malformed JSON or p…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
payload | string | yes |
response_file | string | yes |
pane_result_read
Read a pane’s validated structured result (plexi pane result <id>, stint 0666). When wait is false, returns the c…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
timeout_secs | number | no |
wait | boolean | no |
agent_call
Invoke an agent role as a tool, waiting for its completion or question.
| Field | Type | Required |
|---|---|---|
asynchronous | boolean | no |
call_credential | string? | no |
cwd | string? | no |
handoff | boolean | no |
response_file | string | yes |
role | string | yes |
task | string | yes |
worktree | string? | no |
agent_message
Deliver a structured reply to a child agent, optionally waiting for its next outcome.
| Field | Type | Required |
|---|---|---|
call_credential | string? | no |
pane_id | integer | yes |
response_file | string | yes |
text | string | yes |
wait | boolean | no |
agent_spawn
Spawn a configured agent worker pane, optionally into a created or reused child sub-context with a parent `PortalPane…
| Field | Type | Required |
|---|---|---|
anchor_pane | integer? | no |
command | string | yes |
cwd | string? | no |
ephemeral | boolean | no |
focus | boolean | no |
harness | string | yes |
initial_slots | any[][] | no |
name | string? | no |
response_file | string | yes |
result_schema | any | no |
role | string | no |
subcontext | string? | no |
task | string? | no |
worktree | string? | no |
agent_wait
Blocking pull wait for one or more child agent panes to finish via plexi agent done (`plexi agent wait <pane-id…>…
| Field | Type | Required |
|---|---|---|
pane_ids | integer[] | yes |
response_file | string | yes |
timeout_secs | number | no |
agent_done
Complete a worker agent’s task, validating --result against result_schema (stint 0666), writing completed and `…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
result | string? | no |
summary | string? | no |
agent_next
Tier 1 escalation (Worker -> Master): ask the parent master agent a question and transition the worker pane to `Age…
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
agent_fleet
| Field | Type | Required |
|---|---|---|
filter | FleetFilter | no |
response_file | string | yes |
agent_fleet_dismiss
| Field | Type | Required |
|---|---|---|
all_failed | boolean | no |
response_file | string | yes |
target | integer? | no |
agent_ask
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
question | string | yes |
response_file | string | yes |
agent_open
Reopen a closed agent session or run from ~/.plexi-<channel>/agent_history.jsonl (`plexi agent reopen <run-id|sessi…
| Field | Type | Required |
|---|---|---|
cwd | string | yes |
name | string | yes |
response_file | string | yes |
agent_new_chat
New chat for a named agent (plexi agent new-chat <name>, stint 1397): archive the chat agent open would return to…
| Field | Type | Required |
|---|---|---|
cwd | string | yes |
name | string | yes |
response_file | string | yes |
agent_reopen
| Field | Type | Required |
|---|---|---|
query | string | yes |
response_file | string | yes |
subcontext | string? | no |
focus_pane
Move UI focus to a pane by PaneId. Sent by plexi pane focus. Fire-and-forget.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
close_pane
Close a pane by PaneId. Sent by plexi pane close. When response_file is set, the host writes `{“ok”: true, “pane_…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string? | no |
send_to_pane
Write text to a terminal PTY or a plugin’s input path (plexi pane send). \n in text (literal backslash-n) is inte…
| Field | Type | Required |
|---|---|---|
generated_operation_id | boolean | no |
operation_id | string? | no |
pane_id | integer | yes |
paste | boolean | no |
response_file | string? | no |
submit | boolean | no |
text | string | yes |
pane_heartbeat
Configure or disable a host-owned recurring terminal prompt.
| Field | Type | Required |
|---|---|---|
every_ms | integer? | no |
off | boolean | no |
pane_id | integer | yes |
response_file | string? | no |
text | string? | no |
while_idle_only | boolean? | no |
key_pane
Deliver a synthetic key event to any pane. Sent by plexi pane key. For terminal panes, the key is translated to PTY…
| Field | Type | Required |
|---|---|---|
key | string | yes |
pane_id | integer | yes |
response_file | string? | no |
drop_file
Deliver a local path or image URL to the pane through the same production drop handler used by native host drops.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
path_or_url | string | yes |
response_file | string | yes |
click_pane
Deliver a synthetic pointer click to a view pane, in pane-pixel coordinates (origin at the pane’s top-left). Sent by …
| Field | Type | Required |
|---|---|---|
button | string? | no |
pane_id | integer | yes |
response_file | string? | no |
x | number | yes |
y | number | yes |
click_pane_node
Activate one node of a plugin pane by the ref plexi pane state reports for it (<id>.<16 hex>, stint 1600). Sent b…
| Field | Type | Required |
|---|---|---|
node_ref | string | yes |
pane_id | integer | yes |
response_file | string? | no |
drag_pane
Deliver a sanctioned pointer drag to a view pane: press at from, steps intermediate PointerMoved positions, rel…
| Field | Type | Required |
|---|---|---|
button | string? | no |
from | array? | no |
from_node | string? | no |
pane_id | integer | yes |
response_file | string? | no |
steps | integer? | no |
to | array? | no |
to_node | string? | no |
capture_pane
Read the last N lines from a terminal pane’s PTY scrollback buffer. Sent by plexi pane capture. Host writes a JSON …
| Field | Type | Required |
|---|---|---|
from_cursor | integer? | no |
full_output | boolean | no |
lines | integer | yes |
pane_id | integer | yes |
response_file | string | yes |
pane_status
Derive one auditable working/idle/blocked verdict from the pane’s agent detector, TUI status bar, and trailing termin…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
get_pane_state
Query the last-rendered UI state of a pane. Sent by plexi pane state. For view panes: host writes a versioned `sema…
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
response_file | string | yes |
stale_after_secs | integer? | no |
screenshot
Capture the live host window as a PNG through the real render pipeline (egui::ViewportCommand::Screenshot — actual …
| Field | Type | Required |
|---|---|---|
output_path | string | yes |
pane_id | integer? | no |
response_file | string | yes |
host_key
Inject a synthetic key into the host-level input path. Sent by plexi host key for validating host shortcuts without…
| Field | Type | Required |
|---|---|---|
key | string | yes |
response_file | string | yes |
send_pane_action
Dispatch a semantic action to a view pane. Sent by plexi pane action <pane_id> <action> [args...]. Host delivers `P…
| Field | Type | Required |
|---|---|---|
action | string | yes |
args | string[] | no |
pane_id | integer | yes |
response_file | string? | no |
list_permission_requests
List pending permission requests. Observation seam for the desktop gate.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
show_permission_request
Show one pending permission request.
| Field | Type | Required |
|---|---|---|
pending_request_id | string | yes |
response_file | string | yes |
resolve_permission_request
Resolve one pending permission request from the desktop observation seam.
| Field | Type | Required |
|---|---|---|
choice | string | yes |
pending_request_id | string | yes |
response_file | string | yes |
permissions
Read or change the permission monitor. op is list, reset, revoke, or allow. No socket caller is human: `res…
| Field | Type | Required |
|---|---|---|
duration | string? | no |
id | string? | no |
op | string | yes |
response_file | string | yes |
caller_context
Ask the host which pane (if any) the socket peer lives in and that pane’s live context authority root. The CLI uses t…
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
workspace_cwd | string? | no |
file_open
Open one file or directory in the Plexi surface that handles it (plexi file open, plexi open). The host resolves …
| Field | Type | Required |
|---|---|---|
cwd | string? | no |
from_pane_id | integer? | no |
no_focus | boolean | no |
path | string | yes |
placement | variant | no |
response_file | string | yes |
list_needs_you
List items waiting on the human. The host expires due items first.
| Field | Type | Required |
|---|---|---|
response_file | string | yes |
resolve_needs_you
Resolve one needs-you item. Approving a click approval is refused: the row stays open and only the desktop Allow once…
| Field | Type | Required |
|---|---|---|
approve | boolean | yes |
id | string | yes |
response_file | string | yes |
needs_you_api
Rich Needs-you + continuation API: op is ask, show, answer, reconcile, or complete. The caller is the hos…
| Field | Type | Required |
|---|---|---|
op | string | yes |
payload | any | yes |
response_file | string | yes |
pane_secret_list
Names-only explicit-context inventory, admitted for the host-stamped peer.
| Field | Type | Required |
|---|---|---|
context | string | yes |
response_file | string | yes |
secret_get
Read a workspace or global secret for the host-classified socket caller.
| Field | Type | Required |
|---|---|---|
global | boolean | no |
name | string | yes |
response_file | string | yes |
workspace_root | string? | no |
secret_set
Store a secret after admission for its exact name and scope.
| Field | Type | Required |
|---|---|---|
global | boolean | no |
name | string | yes |
response_file | string | yes |
route_name | string? | no |
value | SecretInput | yes |
workspace_root | string? | no |
secret_delete
Delete a secret after admission for its exact name and scope.
| Field | Type | Required |
|---|---|---|
global | boolean | no |
name | string | yes |
response_file | string | yes |
workspace_root | string? | no |
folder_secret_exec
Release the environment for this folder on the requesting connection.
| Field | Type | Required |
|---|---|---|
cwd | string | yes |
response_file | string | yes |
run_secrets
Release the approved command definition and its required environment.
| Field | Type | Required |
|---|---|---|
command | string | yes |
cwd | string | yes |
response_file | string | yes |
workspace_root | string? | no |
folder_secret_read
Read one folder account on the original connection after host admission.
| Field | Type | Required |
|---|---|---|
cwd | string | yes |
folder | string? | no |
name | string | yes |
response_file | string | yes |
folder_secret_set
Set a folder account after admission for the host-stamped caller.
| Field | Type | Required |
|---|---|---|
folder | string | yes |
name | string | yes |
response_file | string | yes |
value | SecretInput | yes |
folder_secret_rm
Remove a folder account after admission for the host-stamped caller.
| Field | Type | Required |
|---|---|---|
folder | string | yes |
name | string | yes |
response_file | string | yes |
agents_api
Agents API: agent registry, runs, delegation, and gated tool calls. op is create_agent, list_agents, `list_gran…
| Field | Type | Required |
|---|---|---|
op | string | yes |
payload | any | yes |
response_file | string | yes |
call_plugin_tool
Call a plugin-exposed tool through the host tool dispatcher. Sent by plexi plugin call. The host resolves the viewe…
| Field | Type | Required |
|---|---|---|
call_credential | string? | no |
input_json | string | yes |
plugin_id | string | yes |
response_file | string? | no |
target_pane_id | integer? | no |
tool | string | yes |
wait_approved | boolean | no |
list_plugin_tools
Snapshot the live tool registry exposed by running view panes in the resolved context. Sent by plexi plugin tools a…
| Field | Type | Required |
|---|---|---|
context_id | integer? | no |
plugin_id | string? | no |
response_file | string | yes |
create_context
Create a new context. Sent by plexi context new over PLEXI_SOCKET.
| Field | Type | Required |
|---|---|---|
anchor_pane | integer? | no |
focus | boolean | no |
name | string? | no |
parent_context_id | integer? | no |
parent_name | string? | no |
portal_direction | string? | no |
response_file | string? | no |
root | string? | no |
windows | string[] | no |
create_sub_context
Create a sub-context under the caller’s context, pre-populated with a squad of terminal panes in a single window. Sen…
| Field | Type | Required |
|---|---|---|
anchor_pane | integer? | no |
focus | boolean | no |
layout | variant | no |
name | string | yes |
panes | string?[] | yes |
parent_context_id | integer? | no |
parent_name | string? | no |
response_file | string? | no |
root | string | yes |
focus_context
Focus existing context by root, or create one. Sent by plexi context open.
| Field | Type | Required |
|---|---|---|
response_file | string? | no |
root | string | yes |
set_context_root
Set/update the root of a context. Sent by plexi context set-root. context_id targets the caller’s context (PLEXI_…
| Field | Type | Required |
|---|---|---|
context_id | integer? | no |
response_file | string? | no |
root | string | yes |
set_context_description
Set/update the description of a context. Sent by plexi context describe. context_id targets the caller’s context …
| Field | Type | Required |
|---|---|---|
context_id | integer? | no |
description | string | yes |
response_file | string? | no |
zoom_into_context
Zoom into a sub-context. Pushes depth stack. Sent by plexi context zoom.
| Field | Type | Required |
|---|---|---|
context_id | integer | yes |
response_file | string? | no |
zoom_out_of_context
Zoom out of a sub-context. Pops depth stack. Sent by plexi context zoom-out.
No additional fields.
push_pane_to_subcontext
Push a pane into a new sub-context. Sent by plexi context push. pane_id targets the caller’s pane (PLEXI_PANE_ID)…
| Field | Type | Required |
|---|---|---|
name | string? | no |
pane_id | integer? | no |
query_context_state
Query the rolled-up ContextState for a context (#1518). The requesting plugin must be in an ancestor (or the same) …
| Field | Type | Required |
|---|---|---|
context_id | integer | yes |
http_request
Host-brokered HTTP request. Requires net.http capability. Host replies with `PlexiEvent::HttpResponse { request_id,…
Capability: net.http
| Field | Type | Required |
|---|---|---|
body | string? | no |
headers | object | no |
method | string | no |
request_id | string | yes |
url | string | yes |
open_url
Open an HTTP(S) URL in the user’s default browser.
| Field | Type | Required |
|---|---|---|
url | string | yes |
ai_query
v3.3 brokered AI call. Requires ai.query capability.
Capability: ai.query
| Field | Type | Required |
|---|---|---|
messages | AiMessage[] | yes |
model_tier | ModelTier | yes |
request_id | string | yes |
system | string | yes |
tools | AiTool[] | yes |
expose_tools
v3.7 tool protocol (#398). App declares its callable tools to the host. The host registers these in the global tool r…
| Field | Type | Required |
|---|---|---|
tools | AiTool[] | yes |
tool_result
v3.7 tool protocol (#399). App returns the result of a PlexiEvent::ToolCall invocation. call_id must match the `c…
| Field | Type | Required |
|---|---|---|
call_id | string | yes |
error | string? | no |
error_code | string? | no |
output_json | string? | no |
audio_play
Host-owned audio playback via rodio.
| Field | Type | Required |
|---|---|---|
pipe_id | string? | no |
source | string? | no |
state | string | yes |
volume | number | no |
audio_capture
Host-owned audio capture: mic PCM delivered on a binary pipe. device_id selects which input device (from `ListAudio…
| Field | Type | Required |
|---|---|---|
buffer_size | integer | yes |
device_id | string? | no |
pipe_id | string | yes |
sample_rate | integer | yes |
list_audio_devices
Request enumeration of audio devices (#277). Host responds with `PlexiEvent::AudioDevicesListed { request_id, inputs,…
| Field | Type | Required |
|---|---|---|
request_id | string | yes |
list_midi_devices
Request enumeration of MIDI ports (#320). Host responds with `PlexiEvent::MidiDevicesListed { request_id, inputs, out…
| Field | Type | Required |
|---|---|---|
request_id | string | yes |
open_midi_input
Open a MIDI input port and forward every incoming message as a binary pipe frame on pipe_id. Each frame is a single…
Capability: midi.in
| Field | Type | Required |
|---|---|---|
pipe_id | string | yes |
port_id | string | yes |
close_midi_input
Close the MIDI input previously opened on port_id. The host disconnects from the port and closes the associated bin…
| Field | Type | Required |
|---|---|---|
port_id | string | yes |
send_midi
Send one MIDI 1.0 byte stream to port_id. Fire-and-forget — the host only emits PlexiEvent::MidiSendError if the …
Capability: midi.out
| Field | Type | Required |
|---|---|---|
bytes | integer[] | yes |
port_id | string | yes |
open_video
Open a video decoder (#345). The host responds with `PlexiEvent::VideoOpenAck { request_id, handle_id, width, height,…
Capability: video.playback
| Field | Type | Required |
|---|---|---|
pipe_id | string | yes |
request_id | string | yes |
source | string | yes |
set_video_state
Drive playback state for a previously-opened video handle (#345). handle_id is the value returned in VideoOpenAck…
| Field | Type | Required |
|---|---|---|
handle_id | integer | yes |
state | VideoState | yes |
close_video
Close a previously-opened video handle (#345). Tears down the decoder thread and the associated binary pipe drains. N…
| Field | Type | Required |
|---|---|---|
handle_id | integer | yes |
cd_request
Request the host to cd all terminals in the same pane group to cwd. Terminals receive cd <cwd>\n written to their…
| Field | Type | Required |
|---|---|---|
cwd | string | yes |
set_timer
Request a one-shot timer. Requires timer capability. Host fires PlexiEvent::Timer { timer_id } after after_ms m…
Capability: timer
| Field | Type | Required |
|---|---|---|
after_ms | integer | yes |
timer_id | string | yes |
cancel_timer
Cancel a pending timer. No-op if the timer has already fired or doesn’t exist.
| Field | Type | Required |
|---|---|---|
timer_id | string | yes |
load_image
Async image fetch brokered through the host. Requires net.http capability. Host fetches src, caches under `handle…
Capability: net.http
| Field | Type | Required |
|---|---|---|
handle | string | yes |
src | string | yes |
request_linked_terminal
Ask the host to open a fresh terminal pane next to this Canvas plugin and link it. Host responds with `PlexiEvent::Li…
| Field | Type | Required |
|---|---|---|
cwd | string? | no |
label | string? | no |
request_id | string | yes |
run_in_linked_terminal
Execute command in a linked terminal pane.
| Field | Type | Required |
|---|---|---|
command | string | yes |
echo | boolean | yes |
terminal_pane_id | integer | yes |
insert_path_token
Insert path into the linked terminal at the cursor position.
| Field | Type | Required |
|---|---|---|
mode | PathTokenMode | yes |
path | string | yes |
terminal_pane_id | integer | yes |
request_command_preview
Ask the host to compute the command that would run for a given command string in the linked terminal. Doesn’t execu…
| Field | Type | Required |
|---|---|---|
command | string | yes |
request_id | string | yes |
terminal_pane_id | integer | yes |
open_artifact
Open a workspace artifact (file or directory) via the host.
| Field | Type | Required |
|---|---|---|
mode | ArtifactOpenMode | yes |
path | string | yes |
push_nav
App signals it has pushed a navigation level. The host appends the entry to its per-pane nav stack. While the stack h…
| Field | Type | Required |
|---|---|---|
title | string | yes |
view_id | string | yes |
pop_nav
App signals it has popped a navigation level. The host removes the top entry from the per-pane nav stack (saturating …
No additional fields.
set_mouse_tracking
Enable or disable PlexiEvent::MouseMove delivery for this pane.
| Field | Type | Required |
|---|---|---|
enabled | boolean | yes |
stream_process
Spawn command via sh -c and stream its output back to the plugin.
| Field | Type | Required |
|---|---|---|
channel | StreamChannel | yes |
command | string | yes |
correlation_id | string | yes |
terminal_pane_id | integer | yes |
cancel_process
Cancel an in-flight StreamProcess. The host sends SIGTERM to the child, waits up to 1s, then SIGKILL. A `PlexiEvent…
| Field | Type | Required |
|---|---|---|
correlation_id | string | yes |
open_file_picker
Show a native file picker dialog. Requires fs.pick capability.
Capability: fs.pick
| Field | Type | Required |
|---|---|---|
filter | string[] | yes |
mode | FilePickerMode | no |
multiple | boolean | yes |
request_id | string | yes |
declare_event_streams
Declare the named event streams this plugin may emit on. Event names are plugin-defined but MUST be declared (with a …
| Field | Type | Required |
|---|---|---|
streams | EventStreamDecl[] | yes |
emit_event
Emit a semantic plugin event into the host timeline.
| Field | Type | Required |
|---|---|---|
actor | PluginEventActor | yes |
actor_id | string? | no |
caused_by | string? | no |
changed_resources | string[] | no |
event | string | yes |
payload | any | no |
resource_id | string | yes |
resource_scope | string? | no |
revision_after | string | yes |
revision_before | string? | no |
rollback_token | string? | no |
state_ref | string? | no |
suggested_trigger | variant | no |
summary | string | yes |
rollback_verify_result
App’s answer to PlexiEvent::RollbackVerify: the current revision of the queried resource. The host compares it agai…
| Field | Type | Required |
|---|---|---|
checkpoint_id | string | yes |
current_revision | string | yes |
subscribe_plugin_events
Subscribe this pane to another plugin’s declared event streams. Gated through the unified broker (`TargetType::Plugin…
| Field | Type | Required |
|---|---|---|
event_names | string[] | no |
payload_mode | PayloadMode | yes |
plugin_id | string | yes |
request_id | string | yes |
resource_id | string? | no |
trigger_mode | TriggerMode | yes |
unsubscribe_plugin_events
Remove a subscription previously created by SubscribePluginEvents. Only the subscriber that owns it may remove it.
| Field | Type | Required |
|---|---|---|
request_id | string | yes |
subscription_id | string | yes |
list_undo_checkpoints
List undo checkpoints from the host undo timeline, newest first. plugin_id filters to one plugin; None = this plu…
| Field | Type | Required |
|---|---|---|
plugin_id | string? | no |
request_id | string | yes |
request_rollback
Request rollback of an undo checkpoint. Gated through the unified broker (TargetType::UndoCheckpoint). On allow, th…
| Field | Type | Required |
|---|---|---|
checkpoint_id | string | yes |
wake
No-op wake. Nudges the (zero-frame-idle) UI thread to run a frame so queued work — spawn-queue files, pane-IPC channe…
No additional fields.
shutdown
Request a clean host shutdown. Sent by plexi host stop over a direct notify.sock connection (never over `PLEXI_SO…
| Field | Type | Required |
|---|---|---|
response_file | string? | no |
Host → App Events
Messages the host sends to the app.
init
Sent exactly once on startup. App must reply with DrawCommand::Ready.
| Field | Type | Required |
|---|---|---|
args | string[] | no |
capabilities | string[] | yes |
compact_threshold | number | no |
feature_flags | string[] | yes |
height | number | no |
plugin_id | string | yes |
protocol | string | yes |
regular_threshold | number | no |
state | any | no |
theme | object | no |
width | number | no |
workspace_root | string | yes |
render
Request a new frame. App replies with DrawCommands terminated by FrameDone.
| Field | Type | Required |
|---|---|---|
canvas_height | number | no |
canvas_width | number | no |
frame_id | integer | yes |
rect | Rect | yes |
resize
Surface was resized. App should re-layout and request a new frame.
| Field | Type | Required |
|---|---|---|
height | number | yes |
width | number | yes |
key
User input event.
| Field | Type | Required |
|---|---|---|
key | string | yes |
modifiers | Modifiers | yes |
pressed | boolean | yes |
click
Mouse click at logical coordinates within the plugin surface.
| Field | Type | Required |
|---|---|---|
button | MouseButton | yes |
region | string? | no |
x | number | yes |
y | number | yes |
mouse_down
Pointer button pressed (fires on the frame the button goes down).
| Field | Type | Required |
|---|---|---|
button | MouseButton | yes |
modifiers | Modifiers | yes |
x | number | yes |
y | number | yes |
mouse_up
Pointer button released (fires on the frame the button goes up).
| Field | Type | Required |
|---|---|---|
button | MouseButton | yes |
modifiers | Modifiers | yes |
x | number | yes |
y | number | yes |
mouse_move
Pointer moved over the plugin surface. Only fires when the plugin has opted in via `DrawCommand::SetMouseTracking { e…
| Field | Type | Required |
|---|---|---|
buttons | MouseButton[] | yes |
modifiers | Modifiers | yes |
x | number | yes |
y | number | yes |
command
User submitted a command via the command bar.
| Field | Type | Required |
|---|---|---|
text | string | yes |
action
Semantic action dispatched by plexi pane action <pane_id> <action> [args...]. Plugins receive this in on_event an…
| Field | Type | Required |
|---|---|---|
action | string | yes |
args | string[] | no |
capability_decision
Response to a runtime CapabilityRequest.
| Field | Type | Required |
|---|---|---|
capability | string | yes |
granted | boolean | yes |
request_id | string | yes |
secret_value
Secret broker response. value is None when denied.
| Field | Type | Required |
|---|---|---|
key | string | yes |
value | string? | no |
file_read_result
Native WASM plugin runtime file read result.
| Field | Type | Required |
|---|---|---|
content | array? | no |
error | string? | no |
file_list_result
Native WASM plugin runtime directory listing result.
| Field | Type | Required |
|---|---|---|
entries | array? | no |
error | string? | no |
run_update
Run lifecycle update from the host.
| Field | Type | Required |
|---|---|---|
payload | any | yes |
run_id | string | yes |
status | string | yes |
pipe_message
A message on directed pipe connection generation (JSON mode only; binary mode travels on the side channel).
| Field | Type | Required |
|---|---|---|
generation | integer | yes |
payload | any | yes |
pipe_id | string | yes |
path_changed
Pane group CWD broadcast. Declared, never constructed — no host path emits this today; sync_plugin_cwd reassign…
| Field | Type | Required |
|---|---|---|
cwd | string | yes |
suspend
App is being backgrounded (host window losing focus, plugin no longer visible).
No additional fields.
resume
App is being foregrounded again.
No additional fields.
shutdown
App is being closed. Process must exit within a short timeout.
No additional fields.
theme
Host theme changed through Plexi configuration. App should update its color state; the next render will pick up the n…
| Field | Type | Required |
|---|---|---|
colors | object | yes |
view_opened
Confirmation that a SpawnView request succeeded.
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
type_id | string | yes |
pane_spawned
Confirmation that a SpawnPane request succeeded (#592).
| Field | Type | Required |
|---|---|---|
pane_id | integer | yes |
request_id | string? | no |
pane_spawn_error
SpawnPane could not be fulfilled (#592). reason is a human-readable error.
| Field | Type | Required |
|---|---|---|
reason | string | yes |
request_id | string? | no |
context_state_response
Response to HostRequest::QueryContextState (#1518).
| Field | Type | Required |
|---|---|---|
state | ContextState | yes |
pipe_opened
Binary pipe opened — plugin connects to socket_path as a unix socket client.
| Field | Type | Required |
|---|---|---|
pipe_id | string | yes |
socket_path | string | yes |
directed_pipe_opened
This app’s PipeOpenDirected request_id was accepted: sends name connection generation.
| Field | Type | Required |
|---|---|---|
generation | integer | yes |
pipe_id | string | yes |
request_id | string | yes |
directed_pipe_open_refused
This app’s PipeOpenDirected request_id was refused; nothing opened.
| Field | Type | Required |
|---|---|---|
pipe_id | string | yes |
reason | PipeOpenRefusal | yes |
request_id | string | yes |
directed_pipe_incoming
Another view opened directed pipe pipe_id to this app as connection generation. Sent before the connection’s firs…
| Field | Type | Required |
|---|---|---|
generation | integer | yes |
peer_pane_id | integer | yes |
pipe_id | string | yes |
pipe_closed
Directed pipe connection generation ended. Sends naming it are dropped; a reopen is a new connection with a new gen…
| Field | Type | Required |
|---|---|---|
generation | integer | yes |
pipe_id | string | yes |
reason | PipeCloseReason | yes |
pipe_overrun
Binary pipe backpressure — host dropped dropped_frames frames from the ring.
| Field | Type | Required |
|---|---|---|
dropped_frames | integer | yes |
pipe_id | string | yes |
inject_state
Drop a JSON payload into the plugin’s on_inject hook. Sent at startup with persisted plugin state (workspace if ava…
| Field | Type | Required |
|---|---|---|
payload | any | yes |
state_changed
A state scope’s backing file changed outside the plugin’s own persist flow — an external edit, or a persist the plugi…
| Field | Type | Required |
|---|---|---|
error | string? | no |
payload | any | yes |
scope | string | yes |
source | string | yes |
render_seed
DEPRECATED: superseded by the state field on Init. Kept for backwards compatibility with older SDK versions. The he…
| Field | Type | Required |
|---|---|---|
payload | any | yes |
http_response
Host broker response to a DrawCommand::HttpRequest. error is present when the request failed; body may still ca…
| Field | Type | Required |
|---|---|---|
body | string | yes |
error | string? | no |
request_id | string | yes |
status | integer | yes |
notify_action
Sent when the user responds to a notification that included a notify_id.
| Field | Type | Required |
|---|---|---|
action_label | string | yes |
notify_id | string | yes |
value | string? | no |
timer
Fired when a SetTimer timer expires.
| Field | Type | Required |
|---|---|---|
timer_id | string | yes |
image_loaded
Fired when a load_image request completes (success or failure). status is “ok” or “error”. message carries the …
| Field | Type | Required |
|---|---|---|
handle | string | yes |
message | string? | no |
status | string | yes |
text_measured
Response to a DrawCommand::MeasureText request. width and height are in logical pixels at the requested font size.
| Field | Type | Required |
|---|---|---|
height | number | yes |
request_id | string | yes |
width | number | yes |
text_wrapped_measured
Response to a ControlCommand::MeasureTextWrapped request. height is the pixel height of the text when wrapped at …
| Field | Type | Required |
|---|---|---|
height | number | yes |
request_id | string | yes |
paste
Clipboard paste forwarded into the focused view pane.
| Field | Type | Required |
|---|---|---|
text | string | yes |
ai_response
Response to a DrawCommand::AiQuery. Either content is Some (success) or error is Some (failure) — the two a…
| Field | Type | Required |
|---|---|---|
content | string? | no |
error | string? | no |
request_id | string | yes |
tokens_in | integer | yes |
tokens_out | integer | yes |
ai_stream_chunk
Incremental token chunk from a streaming ai_query response. Sent live while the turn runs, before the final `AiRespon…
| Field | Type | Required |
|---|---|---|
delta | string | yes |
done | boolean | no |
reasoning | string? | no |
request_id | string | yes |
tool_call
Host-to-plugin tool invocation (#399). The broker calls a tool exposed via DrawCommand::ExposeTools by sending this…
| Field | Type | Required |
|---|---|---|
authorization | string? | no |
call_id | string | yes |
caller_id | string | yes |
input_json | string | yes |
name | string | yes |
audio_devices_listed
Response to a DrawCommand::ListAudioDevices request (#277). Both vectors are always present — empty when enumeratio…
| Field | Type | Required |
|---|---|---|
error | string? | no |
inputs | AudioDeviceWire[] | yes |
outputs | AudioDeviceWire[] | yes |
request_id | string | yes |
audio_capture_started
Sent when a DrawCommand::AudioCapture successfully opened the device and started delivering PCM frames on pipe_id…
| Field | Type | Required |
|---|---|---|
buffer_size | integer | yes |
channels | integer | yes |
device_name | string | yes |
pipe_id | string | yes |
sample_rate | integer | yes |
audio_capture_error
Sent when a DrawCommand::AudioCapture could not be honoured — permission denied, bad device id, no devices, cpal fa…
| Field | Type | Required |
|---|---|---|
error | string | yes |
pipe_id | string | yes |
midi_devices_listed
Response to a DrawCommand::ListMidiDevices request (#320). Both vectors are always present — empty when CoreMIDI fi…
| Field | Type | Required |
|---|---|---|
error | string? | no |
inputs | MidiPortWire[] | yes |
outputs | MidiPortWire[] | yes |
request_id | string | yes |
midi_input_opened
Sent when a DrawCommand::OpenMidiInput successfully opened the port and started forwarding incoming MIDI byte strea…
| Field | Type | Required |
|---|---|---|
pipe_id | string | yes |
port_id | string | yes |
port_name | string | yes |
midi_input_error
Sent when DrawCommand::OpenMidiInput could not be honoured — permission denied, port not found, CoreMIDI failure.
| Field | Type | Required |
|---|---|---|
error | string | yes |
pipe_id | string | yes |
midi_send_error
Sent when DrawCommand::SendMidi could not be honoured. Successful sends produce no event (fire-and-forget); only fa…
| Field | Type | Required |
|---|---|---|
error | string | yes |
port_id | string | yes |
video_open_ack
Sent when a DrawCommand::OpenVideo succeeded (#345). The host has allocated the binary pipe (look for the preceding…
| Field | Type | Required |
|---|---|---|
duration_ms | integer | yes |
fps | number | yes |
handle_id | integer | yes |
height | integer | yes |
request_id | string | yes |
width | integer | yes |
video_open_error
Sent when DrawCommand::OpenVideo could not be honoured (#345) — capability denied, source not found, decoder error,…
| Field | Type | Required |
|---|---|---|
error | string | yes |
request_id | string | yes |
linked_terminal_ready
Response to DrawCommand::RequestLinkedTerminal (#78). Carries the pane id of the freshly-opened terminal so subsequ…
| Field | Type | Required |
|---|---|---|
request_id | string | yes |
terminal_pane_id | integer | yes |
command_preview
Response to DrawCommand::RequestCommandPreview (#78). Returns the command verbatim plus the linked terminal’s curre…
| Field | Type | Required |
|---|---|---|
command | string | yes |
request_id | string | yes |
would_run_in_cwd | string | yes |
nav_back
Emitted by host to plugin when Escape is pressed and the plugin’s nav stack depth is > 0. The plugin handles this by …
| Field | Type | Required |
|---|---|---|
view_id | string | yes |
file_picked
Response to DrawCommand::OpenFilePicker. At least one file was selected. paths contains the absolute, canonicaliz…
| Field | Type | Required |
|---|---|---|
paths | string[] | yes |
request_id | string | yes |
file_pick_cancelled
Response to DrawCommand::OpenFilePicker when the user cancelled the dialog without selecting a file, or the plugin …
| Field | Type | Required |
|---|---|---|
request_id | string | yes |
stream_chunk
Chunk of stdout/stderr bytes from an active DrawCommand::StreamProcess child. bytes is a raw byte array (values 0…
| Field | Type | Required |
|---|---|---|
bytes | integer[] | yes |
channel | StreamChannel | yes |
correlation_id | string | yes |
stream_end
Terminal event for a DrawCommand::StreamProcess child. Sent when the child exits, on CancelProcess, or on capabil…
| Field | Type | Required |
|---|---|---|
correlation_id | string | yes |
exit_code | integer | yes |
scroll_offset
Emitted by the host when the scroll offset for a BeginScroll region changes (mouse wheel, drag). The plugin should …
| Field | Type | Required |
|---|---|---|
id | string | yes |
offset_y | number | yes |
scroll
Emitted when the mouse wheel moves over a view pane that has no host-managed scroll region or list_view under the cur…
| Field | Type | Required |
|---|---|---|
delta_y | number | yes |
list_select
Emitted when j/k/up/down changes the list selection. id matches the list_view id field; index is the new select…
| Field | Type | Required |
|---|---|---|
id | string | yes |
index | integer | yes |
list_activate
Emitted when Enter is pressed on the selected item. id matches the list_view id field; index is the activated i…
| Field | Type | Required |
|---|---|---|
id | string | yes |
index | integer | yes |
component_event
Fired when a user interacts with a node that has Interactive wrapping or when a Button/Input node is activated.
| Field | Type | Required |
|---|---|---|
event_type | string | yes |
node_id | string | yes |
payload | any | no |
rollback_verify
Host asks the plugin whether resource_id is still at expected_revision before rolling back a checkpoint. The plug…
| Field | Type | Required |
|---|---|---|
checkpoint_id | string | yes |
expected_revision | string | yes |
resource_id | string | yes |
rollback_apply
Host instructs the plugin to roll resource_id back using the rollback_token the plugin supplied when it emitted t…
| Field | Type | Required |
|---|---|---|
checkpoint_id | string | yes |
resource_id | string | yes |
rollback_token | string | yes |
plugin_events_subscribed
Response to HostRequest::SubscribePluginEvents. Exactly one of subscription_id / error is set.
| Field | Type | Required |
|---|---|---|
error | string? | no |
request_id | string | yes |
subscription_id | string? | no |
declare_event_streams_result
Response to HostRequest::DeclareEventStreams.
| Field | Type | Required |
|---|---|---|
error | string? | no |
streams | array? | no |
emit_event_result
Response to HostRequest::EmitEvent.
| Field | Type | Required |
|---|---|---|
error | string? | no |
sequence | integer? | no |
plugin_events_unsubscribed
Response to HostRequest::UnsubscribePluginEvents.
| Field | Type | Required |
|---|---|---|
error | string? | no |
removed | boolean | yes |
request_id | string | yes |
plugin_event
One subscribed plugin event, delivered to the subscriber pane. Content beyond the event identity is shaped by the sub…
| Field | Type | Required |
|---|---|---|
created_at | string | yes |
event | string | yes |
event_id | integer | yes |
payload | any | no |
plugin_id | string | yes |
resource_id | string | yes |
state_ref | string? | no |
subscription_id | string | yes |
summary | string? | no |
trigger_mode | TriggerMode | yes |
undo_checkpoints
Response to HostRequest::ListUndoCheckpoints: undo checkpoints, newest first, serialized with the spec’s checkpoint…
| Field | Type | Required |
|---|---|---|
checkpoints | any[] | yes |
request_id | string | yes |