Add a document to the Brain
flypost_add_source_documentUpload a document the user gave you (PDF, Word .docx, PowerPoint .pptx, .txt or .md; max 20MB) into a Brain notebook, as the notebook upload in the app does. Blocks while the text is read and indexed (usually under a few minutes) and reports whether it became searchable; a scanned PDF has no text and fails. Needs an existing notebook: create one with flypost_create_notebook. Only upload files the user actually gave you.
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": {
"source_package_id": "<source_package_id>",
"file_name": "<file_name>",
"file_base64": "<file_base64>"
},
"name": "flypost_add_source_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Defaults to the file name. | |
| file_name | Yes | Including the extension, e.g. "pricing-deck.pptx". | |
| file_base64 | Yes | Base64-encoded file bytes (no data: prefix). | |
| is_own_content | No | True when the user wrote this themselves. | |
| source_package_id | Yes | Notebook id from flypost_create_notebook or flypost_list_sources. |