get_request_initiator
Trace JavaScript call stacks to identify which code initiated specific network requests, aiding in debugging API call origins within WeChat MiniApps.
Instructions
Gets the JavaScript call stack that initiated a network request. This helps trace which code triggered an API 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": {
"request_id": "<request_id>"
},
"name": "get_request_initiator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |