open_notebook_add_source
Add a web link or local file as a source in one notebook. Use preview and explicit confirmation to approve processing, then check source progress separately.
Instructions
Add a web link or a local file as a source in one notebook. Give exactly one of url or file_path. Without confirm=true it only returns a preview. With confirm=true you are asked to approve it; the assistant cannot approve for you. A local file is always approved by you, with its full path and size shown, and is never pre-approved in settings. Open Notebook processes the source in the background: check progress with open_notebook_source_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| title | No | ||
| confirm | No | ||
| file_path | No | ||
| notebook_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | No | ||
| path | No | Full path of the local file. Set only in a preview. | |
| status | No | Processing status when the source was created, usually 'new'. | |
| target | Yes | The link without its query string, or the file name. | |
| created | Yes | True only when the source was sent to Open Notebook. | |
| source_id | No | ||
| command_id | No | Background job that processes the source. | |
| size_bytes | No | Size of the local file, when kind is file. | |
| approved_by | No | "person", "allowlist" or "settings". | |
| notebook_id | Yes | ||
| notebook_name | Yes |