switch_target
Switch Chrome DevTools Protocol connection to debug different miniapp components like WebView or AppService by changing the target thread.
Instructions
Switches the CDP connection to a different target thread (e.g. from WebView to AppService) to debug different parts of the miniapp.
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": {
"target_id": "<target_id>"
},
"name": "switch_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |