fix_preview
Preview safe automatic fixes for GitHub Actions workflow files as a unified diff, re-linted to confirm findings disappear without introducing new ones; no files are written.
Instructions
Show a unified diff of the safe automatic fixes for a workflow file (or every workflow under a
directory): add a top-level permissions: contents: read when every job is recognised as read-only,
move injectable ${{ github.event.* }} expressions out of run: scripts into step env: variables,
and replace ::set-output with $GITHUB_OUTPUT. The patched text is re-linted to prove the findings
disappear and none are introduced. Never writes the file: apply the diff yourself. Lists what needs a
manual change.
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": "fix_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |