Add sources
notebook_add_sourcesAdd sources to a notebook in one call: web page and YouTube URLs, pasted text, Google Drive files and Google Play Books ebooks (give at least one). Returns each new source's id, title, kind and status; Google processes a source before chat and Studio can use it (status ready, see notebook_get_notebook). For a file (PDF, audio, image...) use notebook_upload_source. On a timeout, check notebook_get_notebook before retrying, or sources may be added twice. POST /sources.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Pasted text, added as one source. | |
| urls | No | 1-50 http(s) URLs; youtube.com / youtu.be links become YouTube sources. | |
| books | No | Google Play Books ids from notebook_list_play_books (addable: true). | |
| drive | No | Google Drive files: [{ fileId, mimeType, name }]. A Google Doc is application/vnd.google-apps.document. | |
| title | No | Title of the pasted text source. | |
| notebook | Yes | Notebook id (user:<id>-<email>-notebook:<uuid>), from notebook_list_notebooks or notebook_create_notebook. |