Extract Text From Screenshot
extract_text_from_screenshotExtract text from screenshots of code, terminal output, or documents using OCR, returning the verbatim text content.
Instructions
OCR a screenshot (code, terminal output, or a document) and return the text verbatim.
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_from_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional hint about what kind of text this is, e.g. 'terminal output' or 'code editor'. | |
| image_path | Yes | Path to the image file (absolute, or relative to the server's working directory). |