You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd8a7f1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/concepts/session-tool.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,10 @@ Use [`sessions_search`](/concepts/session-search) for exact full-text recall acr
60
60
61
61
The owner-gated `sessions` tool exposes bounded self-service surfaces:
62
62
63
-
-`action: "patch"` changes the current session by default, or another visible session selected by `sessionKey`. It can set the label, sidebar icon, pin/archive state, model, and thinking level.
63
+
-`action: "patch"` changes the current session by default, or another visible session selected by `sessionKey`. It can set the label, sidebar icon, pin/archive state, model, and thinking level. Single-session archive/restore patches are generation-fenced.
64
+
-`action: "archive"` archives one visible `sessionKey` or an ordered `sessionKeys` batch of up to eight targets. Pass `dryRun: true` to return `would_archive`, `already_archived`, `not_found`, or `failed` outcomes without mutation. Result indexes map to input order, and a batch continues after target failures. To archive the session currently running the tool, use `patch` with `archived: true`; OpenClaw defers that self-archive until the run settles.
64
65
-`action: "reset"` resets another visible session selected by `sessionKey`.
65
-
-`action: "delete"` first archives and then deletes the exact same generation of another visible session selected by `sessionKey`. By default its transcript is retained as a deleted archive; pass `deleteTranscript: false` to leave the transcript state untouched. Resetting or deleting the session currently running the tool is rejected.
66
+
-`action: "delete"` first archives and then deletes the exact same generation of one visible `sessionKey` or an ordered `sessionKeys` batch of up to eight targets. Pass `dryRun: true` to preview without mutation. By default its transcript is retained as a deleted archive; pass `deleteTranscript: false` to leave the transcript state untouched. A current-session target is reported as an item failure without aborting valid siblings; reset still rejects the current session.
66
67
-`group_list`, `group_set`, `group_rename`, and `group_delete` manage the global ordered session-group catalog. `group_set` replaces the ordered name list rather than patching one entry.
67
68
68
69
Use `sessions_spawn` with `visible: true` to create a persistent dashboard session. This keeps session creation on the controlled spawn path, which enforces the parent's tool policy, sandbox, concurrency limits, and run timeout.
|`group:plugins`| Tools owned by loaded plugins, including configured MCP servers exposed through `bundle-mcp`|
49
49
50
50
`spawn_task` lets a coding agent propose confirmed follow-up work without starting it. The suggestion's project directory must be a git checkout; invalid suggestions, including a non-git directory or blank prompt, are rejected when the tool records them. The Control UI shows the title and summary as an actionable chip; a Gateway-backed TUI shows an equivalent interactive prompt. Accepting either creates a fresh managed-worktree session and sends the full prompt there while the current turn continues. `dismiss_task` withdraws a still-pending suggestion by the ephemeral `task_id` returned from `spawn_task`.
0 commit comments