shell_integrate
Adds shell integration to a bash or zsh prompt for exact command boundaries and exit statuses during run in remote or fallback sessions.
Instructions
Add shell integration to the bash now waiting at the prompt: exact
command boundaries and exit statuses for run there.
Sessions started without a command have it already, and so does any
bash started inside them. A shell that could not inherit it -- one
reached through ssh or su - -- falls back to prompt matching, with no
exit statuses; call this at its prompt, typically right after run ssh host came back at the remote prompt. Types one short line that reads
the integration file: this server's own on this host; on another host
the copy the user installed there with docent-terminal-mcp install HOST
(without it the reply says so; docent-terminal-mcp ssh HOST needs none).
For bash and zsh, and only at a prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | type even over someone else's unsubmitted line, and without checking that the cursor is at a shell prompt | |
| session | Yes | the session's name (from session_create or session_list) | |
| timeout_s | No | seconds to wait for the integrated prompt to appear |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |