Amazon Bedrock 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 [`amazon_bedrock`](/docs/swml/reference/calling/amazon-bedrock) agent calls one of your functions. Your endpoint runs the function and returns a JSON object with a `response` string (the result the agent reads next) and, optionally, an `action` — a single object or an array — telling the agent what to do. Bedrock agents send a different payload from [`ai`](/docs/swml/reference/calling/ai) agents. Notably `content_type` is `text/json` rather than `text/swaig`, `argument` carries no `substituted` value, there is no `version`, `description`, or `argument_desc`, and the call's timing and caller fields are named differently. Write your handler against this payload, not the [AI SWAIG tool webhook](#tag/calls/webhook/aiSwaigToolWebhook).