shell_session_open
Open a persistent shell session with secrets injected at creation; idle sessions auto-terminate. Use for running commands where plaintext secrets must not reach the model.
Instructions
Open a persistent shell session (PTY when node-pty is available, plain child_process otherwise — the response's pty field says which). Secrets are injected once at creation per matching rule; idle sessions are killed after ttlSeconds (rule ttlSeconds overrides defaults.sessionTtlSeconds).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | working directory (~ is expanded); default: server cwd | |
| profile | No | optional profile name for rule matching | |
| ttlSeconds | No | idle TTL override (seconds) |