session_logs
Manage retention of terminal session logs: keep a session's logs for future reference or delete them on close or immediately when sensitive output must be removed.
Instructions
Keep or delete a session's logs (its log directory: the full output,
regions, raw bytes). The usual rule: a closed session's logs are
deleted once they have been neither written nor read for a few days
(DOCENT_TERMINAL_MCP_KEEP_CLOSED_DAYS, default 3). Reading a closed
session's logs needs none of this -- and counts as use: the read,
search and regions tools work on them as they are. Change how
a session's logs are kept only when the user asks: "keep" exempts a
session they want to refer back to; "delete_on_close" and "delete" are for logs that showed
something sensitive. Deleting cannot be undone: ask the user first,
and never delete another agent's or a human's logs unasked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | "keep": never delete them (when the user asks for that); "default": back to the usual rule; "delete_on_close": delete them when the session closes (at once if it is closed); "delete": delete them now (closed sessions only) | |
| session | Yes | the session's name, live or closed (an earlier session of a reused name is NAME.N, as session_list shows) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |