gemini_create_cache_tool
Create a reusable content cache to avoid resending data for repeated Gemini queries. Upload text or a file once, set a TTL, and run multiple queries against the cached content.
Instructions
Create a content cache for repeated queries.
Upload content once and query it multiple times without re-sending.
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 | |||