swift_package_command
Run Swift Package Manager commands in the active project directory, supporting build, test, clean, and resolve with optional arguments and configurations to streamline development workflows.
Instructions
Executes Swift Package Manager commands in the active project directory.
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": {
"command": "<command>"
},
"name": "swift_package_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The SPM command to execute (e.g., 'build', 'test', 'clean', 'resolve') | |
| extraArgs | No | Additional arguments to pass to the command | |
| configuration | No | Build configuration ('debug' or 'release') |