ExperimentalUnique identifier for this terminal within the session.
OptionalcommandThe command being run.
OptionalcwdThe absolute working directory of the command.
OptionaloutputAn authoritative replacement snapshot of terminal output bytes.
OptionalexitExit information. A concrete object marks the terminal as exited.
Optional_The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted leaves the stored metadata unchanged; null
clears it. An object patches the stored metadata by top-level key: keys it omits are
unchanged, a key set to null is removed, and any other value replaces that key's
stored value without merging nested objects. Beyond this patch rule, implementations
MUST NOT make assumptions about values at these keys.
See protocol docs: Metadata Patches
An upsert for the stored state of an agent-owned terminal.
Only [
TerminalUpdate::terminal_id] is required. Other fields have patch semantics: omitted fields leave the stored value unchanged,nullclears it, and concrete values replace it. A concrete_metaobject instead patches the stored metadata by top-level key. When the terminal ID is new, omitted fields start unknown.