Gemini Create Cache Tool
gemini_create_cache_toolCreate a content cache to reuse uploaded text or files for repeated Gemini queries, avoiding re-sending the same content each time.
Instructions
Create a content cache for repeated queries.
Upload content once and query it multiple times without re-sending.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gemini_create_cache_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use. | flash |
| content | No | Text content to cache (alternative to file_path). | |
| file_path | No | Path to a file to cache. | |
| ttl_minutes | No | Time-to-live in minutes (default 60). | |
| display_name | No | Human-readable name for the cache. | mcp-cache |
| system_instruction | No | System instruction for queries against this cache. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||