create_pr_comment
Generate a GitHub PR comment with in-line accessibility patch suggestions for a single file, ordered by severity. Returns markdown ready to post.
Instructions
[pr] Generate a PER-FILE GitHub PR comment with in-line gh pr suggestion blocks for a11y patches against ONE file, ordered by severity. Returns markdown ready to post.
vs format_pr_comment: audit-level summary. vs generate_pr: opens the actual PR.
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": {
"file_path": "<file_path>",
"patches": "<patches>"
},
"name": "create_pr_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file being patched (for comment header) | |
| patches | Yes | Array of patches with optional verification status. Patches are ordered by severity (critical first). | |
| include_unverified | No | Include patches without verification (default: true) | |
| include_failed | No | Include patches that failed verification (default: false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |