add_document
Upload and index a document from a local path or HTTP(S) URL into Gemini file stores, with automatic URL download and SHA-256 deduplication.
Instructions
Upload and index a document from local path or URL. Supports automatic URL download and SHA-256 deduplication.
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": "<source>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Local file path or HTTP(S) URL to the document to upload | |
| metadata | No | Optional document metadata |