sessionId: {{sessionId}}

currentModeId: default

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

plan

description: Enter or leave plan mode


title: Exercise the six PTY tools

updatedAt: {{updatedAt}}


toolCallId: pty-spawn

title: Open terminal main

kind: execute


status: completed

type: content

type: text

text:
started terminal session pty-1 (main) [type: shell]
dsh>


toolCallId: pty-send

title: printf 'PTY_OK\n'

rawInput: printf 'PTY_OK\n'

text: Terminal pty-1

type: terminal

terminalId: pty-send

terminal_id: pty-send


data:
K
dsh>
[wait: stdin_read]
[session: running]
[output truncated]


toolCallId: pty-read

title: Read terminal pty-1

kind: read


text:
dsh> printf 'PTY_OK\n'
PTY_OK
dsh>
[lines: 0-3 of 3]


toolCallId: pty-signal

title: Signal terminal pty-missing

sessionId: pty-missing

signal: SIGINT


status: failed

text: Error: unknown PTY session pty-missing


toolCallId: pty-kill

title: Close terminal pty-1

kind: delete


text: closed terminal session pty-1


toolCallId: pty-list

title: List terminal sessions


text: (no terminal sessions)


text: DONE