index_directory
Scans a local directory, extracts text from documents and media, then creates searchable semantic embeddings using Gemini 2.
Instructions
Scans a local directory, extracts text from files (PDF, DOCX, TXT, MD) AND raw video/audio/image bytes, generates semantic embeddings using Gemini 2 and stores them for searching.
Args: directory_path: Absolute path to the directory. ignore: Optional list of glob patterns to ignore (e.g., [".log", "drafts", "temp"]).
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": {
"directory_path": "<directory_path>"
},
"name": "index_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory_path | Yes | ||
| ignore | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |