AI SWAIG tool webhook

View as MarkdownOpen in Claude
Sent to a tool's `web_hook_url` (or the SWAIG `defaults.web_hook_url`) when an [`ai`](/docs/swml/reference/calling/ai) agent calls one of your functions. Your endpoint runs the function and returns a JSON object with a `response` string (the result the AI reads next) and, optionally, an `action` — a single object or an array — telling the agent what to do.