eval_extension_page
Run JavaScript inside a Chrome extension's popup or side panel, unlocking chrome.* API access for direct testing and validation.
Instructions
Execute JavaScript in an extension popup or side panel page context (has access to chrome.* APIs).
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": {
"expression": "<expression>",
"target": "<target>"
},
"name": "eval_extension_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Which extension page to evaluate in | |
| expression | Yes | JavaScript expression to evaluate in the extension page context |