cocos_clean_project
Remove build artifacts from Cocos Creator projects to free disk space and resolve build conflicts. Choose cleaning levels to delete temporary files or re-import all assets.
Instructions
Clean build artifacts. level: build/temp/library/all/default.
'default' removes build/ + temp/. 'all' also removes library/ (next build re-imports all assets, slow).
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": {
"project_path": "<project_path>"
},
"name": "cocos_clean_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| level | No | default |