axint.xcode.write
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 this instead of raw XcodeWrite when an agent is editing Apple-native files during a long task. Use: use only for guarded Xcode-project file writes; outside Xcode, patch normally and validate after. Inputs: path must remain inside cwd; createDirs, validateSwift, and cloudCheck default true. 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. | |
| notes | No | Agent notes or user feedback to scan for drift while writing. | |
| format | No | Output format. Defaults to markdown. | |
| content | Yes | Full file contents to write. | |
| platform | No | Target Apple platform for Cloud Check. | |
| cloudCheck | No | Whether to run Cloud Check for .swift files. Defaults to true. | |
| createDirs | No | Whether to create parent directories before writing. Defaults to true. | |
| projectName | No | Project name for guard/session reports. | |
| sessionToken | No | Current axint.session.start token, if already known. | |
| validateSwift | No | Whether to run Swift validation for .swift files. Defaults to true. | |
| expectedVersion | No | Expected Axint version for this project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| isError | No |