Create popup
create_popupCreate a popup that shows a form on a trigger (time, scroll or exit_intent), optionally only on some paths. Errors: invalid_popup_config, not_found (form), invalid_status. Next: set status live, then add the runearc-embed.js script with data-popup="ID" to your site; popup_stats shows conversions.
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": {
"name": "<name>",
"form_id": "<form_id>",
"heading": "<heading>"
},
"name": "create_popup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for the popup, such as "Blog exit offer". | |
| status | No | draft or live. Default draft. | |
| form_id | Yes | The form to show (frm_...). | |
| heading | Yes | The popup headline. | |
| trigger | No | time, scroll or exit_intent. Default time. | |
| only_paths | No | Only on URLs starting with these paths, such as ["/blog"]. Empty means every page. | |
| days_between | No | Days before showing again to the same visitor. Default 7. | |
| trigger_value | No | Seconds for time, percent for scroll. Default 5 and 50. |