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.
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) |