add_source
Add a source—file, text, URL, or YouTube video—to a notebook by providing the notebook ID and content. Source type is auto-detected.
Instructions
Add a source (file, text, URL) to a notebook.
notebook_id: The ID of the notebook. content: The content (URL, absolute file path, or raw text). source_type: Optional. Type of source (url, text, file, youtube). Auto-detected if omitted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"notebook_id": "<notebook_id>",
"content": "<content>"
},
"name": "add_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_id | Yes | ||
| content | Yes | ||
| source_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |