捕获当前游戏 Canvas 图像
cocos_runtime_captureCaptures the current game Canvas image for runtime inspection and debugging in Cocos Creator projects. Specify the project and capture options to retrieve the rendered frame.
Instructions
捕获当前游戏 Canvas 图像
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": {
"projectId": "<projectId>",
"params": "<params>"
},
"name": "cocos_runtime_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| projectId | Yes | ||
| instanceId | No | ||
| operationId | No | ||
| expectedRevision | No | ||
| runtimeInstanceId | No |