sessionId: {{sessionId}}

Model

description: Sets this session's provider and model.

category: model

type: select

Permissions

description: The session permission preset: each choice bundles a sandbox mode and an approval policy.

category: mode

currentValue: danger-full-access

workspace-write

value: workspace-write

description: Write inside the workspace and permitted temporary directories; wider retries require approval.

danger-full-access

value: danger-full-access

description: Full file access without approval prompts.


method: session/update

goal

description: set or view the goal for a long-running task


type: text

text: The


text: user


text: wants


text: a


text: single


text: run


text: program


text: that


text: calls


text: bash


text: twice


text: then


text: returns


text: the


text: two


text: outputs


text: joined


text: with


text: plus


text: sign


text: Let


text: me


text: write


text: this


title:
const out1 = await tools.bash({ command: "echo CODE_ONE", description: "First echo" });
const out2 = await tools.bash({ command: "echo CODE_TWO", description: "Second echo" });
return out1.trim() + "+" + out2.trim();

kind: execute


status: completed

type: content


text: The


text: output


text: is


text: exactly


text: what


text: the


text: user


text: asked


text: for


text: CODE


text: ONE


text: WO