Skip to main content
Called by script.js after scanning a page. Upserts detected actions into the database and returns any agent prompts you’ve configured — which the script then injects into the page DOM.

Request

Response

Behaviour

  • If an action with the same tool_name already exists for this website, it is updated (name, type, selector, description) — existing prompt configuration is preserved.
  • If the action is new, it is created with no prompts (configure them in the dashboard).
  • Sending an empty actions array is valid — it confirms the script is running on a page without forms.

CORS

Accepts cross-origin requests (Access-Control-Allow-Origin: *).