clean_ws
Remove build products for a specific Xcode workspace using xcodebuild. Specify the workspace path; optional parameters include scheme, configuration, and derived data path. Simplify cleanup for Xcode projects.
Instructions
Cleans build products for a specific workspace using xcodebuild. IMPORTANT: Requires workspacePath. Scheme/Configuration are optional. Example: clean_ws({ workspacePath: '/path/to/MyProject.xcworkspace', scheme: 'MyScheme' })
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": {
"workspacePath": "<workspacePath>"
},
"name": "clean_ws"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| configuration | No | Optional: Build configuration to clean (Debug, Release, etc.) | |
| derivedDataPath | No | Optional: Path where derived data might be located | |
| extraArgs | No | Additional xcodebuild arguments | |
| scheme | No | Optional: The scheme to clean | |
| workspacePath | Yes | Path to the .xcworkspace file (Required) |