import { agentMessageTool } from "../agent-messages.js"; import { tool } from "../tool.js"; export default agentMessageTool("reply", { description: "Reply to a specific stable message_id returned by mcp_tjwater_read_agent_messages in this conversation's authorized thread or bound investigation run. Use a stable UUID request_id reused for retries. Provide a useful substantive response, not automatic acknowledgement ping-pong. The bridge resolves the recipient from the original message; no arbitrary session target is accepted. Queued means accepted for delivery, not processed. A reply retains originalMessage provenance, does not create human evidence or a new investigation round, and does not wake an idle main conversation.", args: { message_id: tool.schema.string().uuid(), message: tool.schema.string().min(1).max(8000), request_id: tool.schema.string().uuid().describe("Stable UUID idempotency key; reuse when retrying this same reply"), }, });