page_set_data
Modify page data directly in WeChat DevTools to test component rendering without triggering reactive updates, simplifying debugging.
Instructions
修改页面渲染数据(直接改 data,不触发组件响应式更新,适合调试)
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": {
"page_id": "<page_id>",
"data": "<data>"
},
"name": "page_set_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | 要改变的数据对象 | |
| page_id | Yes |