get_console
Fetch recent console output from a running Shiny app to inspect print, message, cat, or logging statements. Supports returning the last N lines or all new output since the last check.
Instructions
The app's console output (print, message, cat, logging), newest last: the last lines
lines, or with since_last=True everything since the previous since_last call. Long output keeps
the newest lines and says how many older ones were cut. Only for apps started with launch_app.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>"
},
"name": "get_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| app_id | Yes | ||
| since_last | No |