Loading...
Loading...
Official skill for recognizing and extracting tables from images and PDFs into Markdown format using ZhiPu GLM-OCR API. Supports complex tables, merged cells, and multi-page documents. Use this skill when the user wants to extract tables, recognize spreadsheets, or convert table images to editable format.
npx skill4agent add zai-org/glm-skills glmocr-table| Resource | Link |
|---|---|
| Get API Key | 智谱开放平台 API Keys |
| API Docs | Layout Parsing / 版面解析 |
ZHIPU_API_KEYZHIPU_API_KEYopenclaw.jsonenv.vars{
"env": {
"vars": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}openclaw.json{
"skills": {
"entries": {
"glmocr-table": {
"env": {
"ZHIPU_API_KEY": "你的密钥"
}
}
}
}
}~/.zshrcexport ZHIPU_API_KEY="你的密钥"💡 如果你已为其他智谱 skill(如、glmocr、glmv-caption)配置过 key,它们共享同一个glm-image-generation,无需重复配置。ZHIPU_API_KEY
ZHIPU_API_KEYGLM_OCR_TIMEOUThttps://open.bigmodel.cn/api/paas/v4/layout_parsing--include-rawpython scripts/glm_ocr_cli.pytextlayout_details--include-rawpython scripts/glm_ocr_cli.py --file-url "https://example.com/table.png"python scripts/glm_ocr_cli.py --file /path/to/table.pngpython scripts/glm_ocr_cli.py --file table.png --output result.json --prettypython scripts/glm_ocr_cli.py --file table.png --output result.json --include-rawpython {baseDir}/scripts/glm_ocr_cli.py (--file-url URL | --file PATH) [--output FILE] [--pretty] [--include-raw]| Parameter | Required | Description |
|---|---|---|
| One of | URL to image/PDF |
| One of | Local file path to image/PDF |
| No | Save result JSON to file |
| No | Pretty-print JSON output |
| No | Include raw upstream API response in |
{
"ok": true,
"text": "| Column 1 | Column 2 |\n|----------|----------|\n| Data | Data |",
"layout_details": [...],
"result": null,
"error": null,
"source": "/path/to/file",
"source_type": "file",
"raw_result_included": false
}oktextlayout_detailserrorZHIPU_API_KEY not configured. Get your API key at: https://bigmodel.cn/usercenter/proj-mgmt/apikeys