Run the sandbox send/receive/parse self-test
mailbuttons_run_selftestRuns an internal sandbox email loopback self-test by sending a test message, polling for arrival, then reading and parsing it to report pass/fail per stage; never sends externally.
Instructions
Build-time, sandbox-only. Sends an INTERNAL test message, polls for it to arrive, then reads and parses it, reporting pass/fail per stage. Needs a live backend to go green; with none it reports backend_reachable:false and skips the later stages rather than throwing. Never sends externally.
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": {
"inbox_id": "<inbox_id>"
},
"name": "mailbuttons_run_selftest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inbox_id | Yes | The sandbox inbox id to run the loop against. | |
| timeout_ms | No | How long to poll for the test message to arrive. Default 8000ms. | |
| self_address | No | The inbox's own address, used as the internal recipient for the loopback send. If omitted, the send stage is skipped (the loop can't address itself). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True only if every non-skipped stage passed. | |
| stages | Yes | ||
| inbox_id | Yes | ||
| backend_reachable | Yes | False means the backend could not be contacted at all. |