execute_in_react_context
Execute JavaScript within React applications to inspect components, access state data, or trigger specific actions for testing and analysis purposes.
Instructions
Execute JavaScript in React context to inspect components, state, or trigger actions
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": {
"url": "<url>",
"script": "<script>"
},
"name": "execute_in_react_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Browser engine to use | chromium |
| script | Yes | JavaScript code to execute in the browser context | |
| url | Yes | URL of the React app | |
| waitForReact | No | Wait for React to be available before executing |