Extract Text
extract_textExtract readable text from images, screenshots, documents, signs, and handwriting using Gemini vision OCR for accurate digitization.
Instructions
Extract text from an image using OCR.
Uses Gemini's vision capabilities for high-quality text extraction. Works with screenshots, documents, signs, handwriting, etc.
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": {
"image_path": "<image_path>"
},
"name": "extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Analysis model override. Default gemini-3.5-flash-lite. Use gemini-3.8-flash for harder OCR. | |
| image_path | Yes | Path to the image to extract text from | |
| use_grounding | No | Enable Google Search grounding for more accurate, factual results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||