get_toast_messages
Capture visible toast, notification, or alert messages on a web session to verify success or error notifications after an action.
Instructions
Capture currently-visible toast/notification/alert text on a session — checks common patterns ([role=alert], [role=status], [aria-live], .toast, .notification, Toastify, Sonner, Radix) or your own selector. Returns the messages found. Set wait_ms to let a toast animate in first. Use to verify success/error notifications after an action.
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": {
"session_id": "<session_id>"
},
"name": "get_toast_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_ms | No | Wait this many ms before capturing (lets toast animate in, default: 0) | |
| selector | No | Override default toast selectors with a custom CSS selector | |
| session_id | Yes | Session ID |