write_file
Write or update file content in active Xcode projects. Specify file path and content to modify or create project files.
Instructions
Writes or updates the content of a file in the active Xcode project.
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": {
"filePath": "<filePath>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Relative or absolute path to the file to update or create. | |
| content | Yes | The content to be written to the file. | |
| createIfMissing | No | If true, creates the file if it doesn't exist. |