xcode_create_swift_file
Generate a new Swift file with specified code content at a designated file path using the Xcode MCP Server, enabling streamlined iOS/macOS project development.
Instructions
Create a new Swift source file with content
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Swift code content for the file | |
file_path | Yes | Path where the Swift file should be created |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Swift code content for the file",
"type": "string"
},
"file_path": {
"description": "Path where the Swift file should be created",
"type": "string"
}
},
"required": [
"file_path",
"content"
],
"type": "object"
}