Skip to main content
Reference · Information

senkani_session

Live

Query session metrics, toggle features, and manage session state from within a tool call.

Signature

senkani_mcp.call(tool="senkani_session", args={...})

Behavior

Actions: `stats`, `toggle`, `pane-list`, `clear-cache`, `pin`, `unpin`, `pins`. Writes to `SessionDatabase` and live MCP session state.

Inputs

Name
Type
Default
Description
action
string
One of stats, toggle, pane-list, clear-cache, pin, unpin, pins.
feature
string
For `toggle`: `filter`, `cache`, `secrets`, `indexer`, `terse`.
symbol
string
For `pin`/`unpin`.

Output

Depends on action. `stats` returns lifetime + session metrics; `pins` returns the pinned symbol list.

Example

{"tool":"senkani_session","args":{"action":"stats"}}

Details

Toggle changes persist to `~/.senkani/panes/{{paneId}}.env` and take effect immediately — no restart.

See also

Source: Sources/MCPServer/Tools/SessionTool.swift