kernel_get_output
Retrieve the output of an asynchronously executed Python code block by providing its message ID. Waits up to a specified timeout if still running, then returns stdout, stderr, results, errors, and images.
Instructions
Retrieve output for a pending execution by msg_id.
If still running, waits up to timeout seconds (or returns immediately if timeout is omitted). Returns the same tagged blocks as kernel_execute: [stdout], [stderr], [result], [error], images, and [pending] if not yet done.
Once complete output is returned, the record is cleaned up — calling again with the same msg_id will return an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_id | Yes | ||
| timeout | No |