Add text source
source_add_textAdd text or a local file as a source to a NotebookLM notebook, returning the new source ID, title, and type for later querying.
Instructions
Add text as a source: pass it in content, or point file_path at a local file (content wins if both are set). A file_path outside the server's working directory and the OS temp directory is refused; read such a file yourself and pass content. Returns the new source (id, title, type pasted_text). For a web page or YouTube video use source_add_url; for a Drive file, source_add_drive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title shown for the source in the notebook | |
| content | No | Text to add. Takes precedence over file_path | |
| file_path | No | Local file to read the text from, under the server's working directory or the OS temp directory | |
| 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 |