cocos_apply_post_build_patches
Apply post-build patches to Cocos Creator projects for specific platforms, enabling previews without rebuilding or re-applying modifications after initial build completion.
Instructions
Apply registered patches for platform to build/<platform>/.
Normally cocos_build invokes this automatically on success —
call directly only for dry-run preview (dry_run=True) or when
you need to re-apply without rebuilding.
Returns {platform, dry_run, build_dir, applied, skipped, errors, ok}. Stops on first patch error so a failure can't cascade across files.
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>",
"platform": "<platform>"
},
"name": "cocos_apply_post_build_patches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| platform | Yes | ||
| dry_run | No |