add_file_to_project
Add a file to the active Xcode project by specifying its path, optional group, and target name.
Instructions
Adds a file to 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>"
},
"name": "add_file_to_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Group path within the project to add the file to (e.g., 'MyApp/Models'). If not provided, will add to the root group. | |
| filePath | Yes | Path to the file to add to the project | |
| targetName | No | Name of the target to add the file to. If not provided, will try to add to the first target. | |
| createGroups | No | Whether to create intermediate groups if they don't exist (default: true) |