Add Google Drive source
source_add_driveAdd a Google Drive file to a NotebookLM notebook as a source using its file ID and MIME type. Creates a snapshot source that can be refreshed when the Drive file changes.
Instructions
Add a Google Drive file as a source, by its Drive file ID and MIME type; the signed-in Google account must be able to open the file. Returns the new source (id, title, type). The source is a snapshot: when the Drive file changes, refresh it with source_sync_drive. For a public web page use source_add_url instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title shown for the source in the notebook | |
| file_id | Yes | Google Drive file ID, the part after /d/ in the file's URL | |
| doc_type | Yes | MIME type of the Drive file, e.g. application/vnd.google-apps.document for a Google Doc or application/pdf | |
| notebook_id | Yes | Notebook ID, as returned by notebook_list or notebook_create |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| status | Yes | ||
| message | No | Human-readable outcome or next step |