app_status
Monitor running applications and retrieve their log files to verify process status and review output data.
Instructions
Check whether a launched app is still running and read its logs.
Only PIDs returned by app_launch() in this session are accepted.
Args:
pid: Process ID returned by app_launch().
lines: Number of trailing log lines to return (default 50).
Returns a dict with:
pid: the process ID.
running: whether the process is still alive.
log_file: path to the log file.
tail: the last lines lines of stdout/stderr output.
On failure, returns a dict with a single error key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| lines | No |