analyze_file
Analyzes local or remote PDF and document files with GLM-4.6V-Flash, converting local paths to data URLs and accepting custom prompts.
Instructions
用 GLM-4.6V-Flash 分析文件(PDF/文档等,本地路径会自动转成 data URL)。
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": "analyze_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | 可选:自定义提问 | |
| source | Yes | 文件路径或 http(s) URL |