读取/修改页面数据或调用页面方法
wdt_page_dataRead page data, update data via setData, or call page methods in WeChat Mini Program DevTools automation.
Instructions
action=get 读取 data(可选 path);action=set 调用 setData;action=call 调用页面方法。
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": {
"action": "<action>"
},
"name": "wdt_page_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| data | No | ||
| path | No | ||
| action | Yes | ||
| method | No |