runtime_evaluate
Evaluate JavaScript within a WeChat Mini Program's runtime environment to inspect and modify application state during debugging sessions.
Instructions
Evaluate JavaScript in the mini program runtime through CDP Runtime.evaluate.
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": {
"expression": "<expression>"
},
"name": "runtime_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_id | No | ||
| expression | Yes | ||
| timeout_ms | No | ||
| await_promise | No | ||
| return_by_value | No |