grade_pdf
Convert handwritten answer PDFs to markdown files with confidence tiers for automated grading.
Instructions
OCR a single hand-written answer PDF into answers/converted/.md with a confidence tier.
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": {
"path": "<path>"
},
"name": "grade_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Answer PDF path. Absolute, or relative to project_root (typically answers/<stem>.pdf). | |
| engine | No | Override the OCR engine. When omitted, falls back to .course-meta OCR_ENGINE, then to qwen3-vl. | |
| project_root | No | Absolute path to the course project root. Defaults to the server's CWD when omitted; set this explicitly if the user has cd'd between courses within the same Codex session. |