get_app_output
Retrieve the latest console output from a launched PySide6 app to debug crashes, startup failures, and warnings. Includes print() output, uncaught tracebacks, and Qt/console warnings.
Instructions
Get the last n lines of the launched app's real stdout/stderr: print() output, uncaught tracebacks, and Qt/console warnings.
This is the app's actual console output, captured because launch_app redirects it to a log file. Use this to debug crashes or startup failures. For structured Python logging records use get_logs() instead.
Only works for apps started via launch_app on this server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |