nbinlineai.browser_media_tools
Direct Python calls return a mutable receipt promptly, before browser work finishes. Inspect that same receipt in a later cell. An AI tool returns a fixed status snapshot. Use a later operation_status call to check work in progress.
browser_capabilities
browser_capabilities() -> BrowserReceiptReport browser media availability and limits without prompting for access.
The direct Python receipt updates as the browser replies. Its initial status does not establish the completed capabilities result.
| Parameter | Type | Default | Description |
|---|---|---|---|
| returns | BrowserReceipt | Receipt for a browser capabilities request. |
operation_status
operation_status(operation_id: str) -> BrowserReceiptRead an owned operation’s current state without waiting or extending expiry.
A completed lookup receipt means the lookup finished. Read its result to learn the original operation’s state. The lookup does not fetch media bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
operation_id |
str | required | Owned browser operation identifier. |
| returns | BrowserReceipt | Receipt for a browser status request. |
cancel_operation
cancel_operation(operation_id: str) -> BrowserReceiptCancel unfinished browser work owned by this notebook client.
Completed effects, including saved files, remain after cancellation.
| Parameter | Type | Default | Description |
|---|---|---|---|
operation_id |
str | required | Owned unfinished browser operation identifier. |
| returns | BrowserReceipt | Receipt for a browser cancellation request. |
save_media
save_media(media: dict, save_to: str = 'auto') -> BrowserReceiptSave owned memory media or an exact saved-file reference to a new file.
The Jupyter server writes under its root. The destination must be new. Existing files remain intact. The direct call returns before the browser finishes, so inspect its receipt in a later cell.
| Parameter | Type | Default | Description |
|---|---|---|---|
media |
dict | required | Owned memory reference or exact path and SHA-256 saved-file reference. |
save_to |
str | 'auto' |
Destination name; auto chooses a new file. |
| returns | BrowserReceipt | Receipt for an asynchronous browser save request. |
release_media
release_media(media_id: str) -> BrowserReceiptRelease owned temporary media bytes and dependent previews.
Already saved files and Python copies remain available.
| Parameter | Type | Default | Description |
|---|---|---|---|
media_id |
str | required | Owned temporary media identifier. |
| returns | BrowserReceipt | Receipt for a browser media-release request. |