init_swift_package
Set up a new Swift Package Manager project in the current directory when a Package.swift is absent. Configure package type, name, and test framework to begin.
Instructions
Initializes a new Swift Package Manager project in the current directory. Use this tool first if your project doesn't have a Package.swift file yet and you want to start using Swift packages.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "init_swift_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the package (defaults to directory name) | |
| type | No | Type of package to create (library, executable, tool, build-tool-plugin, command-plugin, macro, or empty) | |
| enableTests | No | Enable test targets (default: true) | |
| testingFramework | No | Testing framework to use (xctest or swift-testing) |