eval
Runs JavaScript in the League of Legends client page and returns JSON results, including awaited promises and Riot plugin APIs, for inspecting or controlling client state.
Instructions
Runs JavaScript in the client page and returns the JSON result. Wrap statements in an async IIFE or just write an expression; promises are awaited. rcp.get("rcp-fe-lol-<plugin>") returns Riot plugin APIs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeoutMs | No | Default 30000. |