cocos_add_webview
Attach an embedded browser pane to display web content like Terms of Service or activity pages within Cocos Creator scenes.
Instructions
Attach cc.WebView — embedded browser pane for ToS / activity pages.
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": {
"scene_path": "<scene_path>",
"node_id": "<node_id>"
},
"name": "cocos_add_webview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| url | No | https://cocos.com |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |