Skip to main content
Discards undelivered follow-up messages for an agent without delivering them: all of them (queued and deferred) by default, or exactly one by its follow_up_id (returned by queue_add) — whether still pending its deliver_at delay or already sitting in the queue. Cancelling a self-scheduled deferred follow-up (a “resume me at T” you no longer need) is clear_queue with that message’s ID. The targeted form is idempotent: it reports whether anything was removed. Equivalent to murmur queue clear and murmur queue remove in the CLI. This does not affect the agent’s current turn. Use interrupt if you also want to stop the in-progress turn.

Parameters

Response

Without follow_up_id, a JSON object with the number of cleared entries: With follow_up_id: follow-up removed, or no undelivered follow-up with that ID (already delivered, already removed, or never queued).

Examples

Clear own queue

Response:

Cancel one deferred follow-up

Response:

Errors