source_add
Add a source to a notebook using URL, text, Google Drive, or file upload. Supports multiple formats including PDF, images, and audio.
Instructions
Add a source to a notebook. Unified tool for all source types.
Supports: url, text, drive, file
Args: notebook_id: Notebook UUID source_type: Type of source to add: - url: Web page or YouTube URL - text: Pasted text content - drive: Google Drive document - file: Local file upload. Supported extensions: PDF, TXT, MD, DOCX, CSV, EPUB, MP3, M4A, WAV, AAC, OGG, OPUS, MP4, JPG, JPEG, PNG, GIF, WEBP. Image-bearing sources (PDF / JPG / PNG / etc.) feed Studio video generation's visual-crop pipeline — charts, photos, and diagrams may be extracted as on-screen aids in Video Overviews. url: URL to add (for source_type=url) urls: List of URLs to add in bulk (for source_type=url, alternative to url) text: Text content to add (for source_type=text) title: Display title (for text sources) file_path: Local file path (for source_type=file) document_id: Google Drive document ID (for source_type=drive) doc_type: Drive doc type: doc|slides|sheets|pdf (for source_type=drive) wait: If True, wait for source processing to complete before returning wait_timeout: Max seconds to wait if wait=True (default 120)
Example: source_add(notebook_id="abc", source_type="url", url="https://example.com") source_add(notebook_id="abc", source_type="url", urls=["https://a.com", "https://b.com"]) source_add(notebook_id="abc", source_type="url", url="https://example.com", wait=True) source_add(notebook_id="abc", source_type="file", file_path="/path/to/doc.pdf", wait=True) source_add(notebook_id="abc", source_type="file", file_path="/path/to/screenshot.png", wait=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_id | Yes | ||
| source_type | Yes | ||
| url | No | ||
| urls | No | ||
| text | No | ||
| title | No | ||
| file_path | No | ||
| document_id | No | ||
| doc_type | No | doc | |
| wait | No | ||
| wait_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||