Code Action
importio_action_codeRun a JavaScript snippet through the upstream CodeAction inside an importio_play_action pipeline. Do not assume this runs in page DOM context; browser globals such as document or window may be unavailable. Do not use this for DOM scraping on unknown data pages. For DOM inspection or interaction, use importio_web_fetch, importio_get_html with options.replaceAssets=false, and selector-based 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": {
"fields": "<fields>"
},
"name": "importio_action_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Optional second playAction argument forwarded after the envelope; omit it unless the upstream action expects one. | |
| fields | Yes | Action-specific configuration forwarded into the action envelope; each tool description states what it should contain where that contract is documented, otherwise it names the upstream configuration fields carries. | |
| optional | No | Flag forwarded into the action envelope; omit it unless the upstream action documents it. |