axint.swift.fix
Automatically corrects mechanical Swift errors identified during validation, using 20+ fix rules to repair code.
Instructions
Auto-fix mechanical Swift errors detected by axint.swift.validate. Handles 20+ fix rules: rewrites @State let → @State var, injects perform() into AppIntents, drops var body stubs into Widgets and Apps, adds let date: Date to TimelineEntry,... Use: use after swift.validate when errors are mechanical; inspect remaining diagnostics manually. Effects: read-only fixed-source output; writes no files and uses no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full Swift source code to fix. | |
| file | No | Optional file name to attach to diagnostics. | |
| format | No | When true (default), pipes the repaired Swift through swift-format with Axint's house style. Falls back to... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Primary Axint tool response text, matching the first text content block. | |
| isError | No | Whether Axint marked the tool response as an error. |