run_command
Executes a shell command in an open Termius session, waits for the prompt, and returns only the command output. Handles timeouts by returning partial output so you can follow up.
Instructions
EXECUTE a shell command on the remote host in the open Termius session, wait for
the prompt to return, and return only the command's output (echo and prompt removed).
If it is still running or waiting for input at timeout, returns what it has so far
with a status line; use read_terminal / send_key('ctrl-c') to follow up.
The tab must be claimed by this session first (claim_terminal).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| session | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |