get_request_initiator
Trace the JavaScript call stack that initiated a network request to locate signing functions from encrypted parameters. Requires prior injection of XHR or fetch hooks.
Instructions
Get the JS call stack that initiated a network request.
Golden path: see encrypted param -> get_request_initiator -> find signing function. Requires inject_hook_preset("xhr"/"fetch") BEFORE navigating.
KNOWN LIMITATIONS (v0.8.1+):
For requests modified by an interceptor registered BEFORE MCP's hooks (e.g. SDKs loaded via sync ), the initiator will be the interceptor's call, not the original business code. Workaround: use reload_with_hooks().
For fetch on Firefox, Playwright-native initiator is often null. Requires inject_hook_preset('fetch', persistent=True).
Args: request_id: The ID of the request.
Returns: dict with url, initiator_stack, source, diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes |