extract_text_from_screenshot
Extract text from screenshots via OCR. Supports code, terminal output, documents, and more. Optionally, specify extraction criteria like error stacks.
Instructions
对截图进行 OCR,提取其中的文本。适用于代码、终端输出、文档、普通文本等。
Args: image: 图片输入(路径 / URL / base64 URI)。 question: 可选,特定提取要求,如"只提取报错堆栈"。
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": "<image>"
},
"name": "extract_text_from_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| question | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |