图片文字提取
extract_textExtract all text from images with OCR while preserving the original layout, including code, formulas, and multiple languages, from local files, URLs, or base64 sources.
Instructions
OCR:提取图片中的全部文字,按原始排版输出(支持代码、公式、多语言)。
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": {
"source": "<source>"
},
"name": "extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | 临时指定模型 id(默认 gpt-5-6;可用 VISION_MODEL 环境变量改全局默认) | |
| source | Yes | 图片来源:本地文件路径、http(s) 图片 URL、data:image/...;base64,... 数据 URL,或裸 base64 |