axint.xcode.write
Writes files into Xcode projects with automatic Swift validation and cloud checks, ensuring code quality and project consistency.
Instructions
Write a file inside the Xcode project through the Axint guard path. For Swift files, runs axint.swift.validate and axint.cloud.check immediately, then records .axint/guard/latest.* proof. Use... Use: use only for guarded Xcode-project file writes; outside Xcode, patch normally and validate after. Effects: writes the requested file inside cwd, may create dirs, validates Swift, and may write guard/check artifacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project root. Defaults to the MCP process cwd. | |
| path | Yes | File path to write. Relative paths are resolved inside cwd; absolute paths must still be inside cwd. | |
| content | Yes | Full file contents to write. | |
| projectName | No | Project name for guard/session reports. | |
| expectedVersion | No | Expected Axint version for this project. | |
| platform | No | Target Apple platform for Cloud Check. | |
| sessionToken | No | Current axint.session.start token, if already known. | |
| createDirs | No | Whether to create parent directories before writing. Defaults to true. | |
| validateSwift | No | Whether to run Swift validation for .swift files. Defaults to true. | |
| cloudCheck | No | Whether to run Cloud Check for .swift files. Defaults to true. | |
| notes | No | Agent notes or user feedback to scan for drift while writing. | |
| format | No | Output format. Defaults to markdown. |
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. |