页面跳转
wdt_navigateNavigates within the current mini program using navigateTo, redirectTo, reLaunch, switchTab, or navigateBack, with optional app.json page validation for each target route.
Instructions
在当前小程序中跳转:navigateTo / redirectTo / reLaunch / switchTab / navigateBack。
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": {
"mode": "<mode>"
},
"name": "wdt_navigate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 目标路径,如 /pages/index/index | |
| mode | Yes | ||
| validate | No | 是否按 app.json 校验目标页面,默认 true;动态页面可设 false |