Run Polarion script
executeRun JavaScript in an isolated sandbox to call Polarion API operations and preview write actions with dry_run before applying them.
Instructions
Run JavaScript in an isolated sandbox. The only API is polarion.<operation>(args) (see search) and console.log. The code is the body of an async function: use await, return a JSON value. Limits: 30 s, 20 write calls. With dry_run: true every write is previewed, not performed.
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": {
"code": "<code>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Body of an async function, e.g. const r = await polarion.getProjects({}); return r.data.length; | |
| dry_run | No | Preview all writes without performing them. |