Validate markdown
validate_markdownValidate a markdown document for PDF/UA-1 accessibility issues (heading hierarchy, missing alt text). Cheap — no rendering. Returns JSON { valid, issues: [{ severity, message, path, rule }], summary: { errors, warnings } }; valid is false when any issue has severity 'error'. Mirrors POST /api/v1/md/validate.
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": {
"markdown": "<markdown>"
},
"name": "validate_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | The GitHub-flavored markdown document to check, exactly as it would be passed to render_markdown. Up to 200KB of text; inline data: image payloads do not count toward that. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | False when any issue has severity 'error'; warnings alone leave it true. | |
| issues | Yes | Every problem found, errors and warnings together. | |
| summary | Yes |