pbi_eval
Execute JavaScript in a Power BI report page and return the JSON-serialized result. Code referencing powerBIAccessToken is rejected.
Instructions
Escape hatch: evaluate a function-body or arrow-fn string in the reportView page. Rejects any code referencing powerBIAccessToken. Returns the JSON-serialized result. NOTE: the powerBIAccessToken rejection is a best-effort textual guard (a regex on the code string), not a sandbox.
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": {
"js": "<js>"
},
"name": "pbi_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | Yes |