Skip to main content

Agents Send Message

[MODE:OVERSEER] Tier: overseer. Not idempotent.

Sending to an agent requires the chat Marquee to be funded. Unpaid Marquees return MARQUEE_NOT_FUNDED.

Pushes one user-style message into the Agent's chat queue. It can also pass image payloads and attachment filenames. Fibe uploads local files before sending the message and then forwards the turn to the selected Agent.

When to use

  • Driving an Agent programmatically from another Agent (Overseer mode).
  • Re-prompting after a tool failure or feedback.
  • Automated test scenarios.

Inputs

FieldTypeRequiredNotes
id_or_nameint or stringyesAgent ID or name
textstringyesMessage body
conversation_idstringnoSpecific conversation/thread ID
busy_policystringnoBehavior when the agent is busy, for example queue
imagesarray<string>noImage payloads, such as data URLs
attachment_pathsarray<string>noLocal file paths to upload before sending
attachment_filenamesarray<string>noAttachment filenames returned by a previous upload

The MCP tool's strict input schema accepts id_or_name, text, conversation_id, busy_policy, images, attachment_paths, and attachment_filenames.

Output

HTTP 202 envelope — message accepted into queue. Does not return the Agent's response; that response will surface via mutter/artefact/event later.

Behavior

  1. The Fibe server authorizes the caller for the Agent.
  2. Uploads any attachment_paths and collects returned filenames.
  3. Sends the message to the selected Agent.
  4. Returns 202 with the accepted-message envelope.
  5. Errors surface as AGENT_COMMUNICATION_FAILED.

Gotchas

  • Agent must be reachable. Check fibe_agents_runtime_status first; sending while runtime_reachable:false errors out.
  • When driving a multi-conversation Agent, always pass conversation_id; otherwise the default conversation is used.
  • Attachments are conversation-scoped when conversation_id is provided; pass the same value to upload and send.
  • Long messages may be split before delivery; behavior depends on the LLM provider config.
  • This tool does NOT wait for the Agent to respond. Watch fibe_agents_live_state, fibe_monitor_follow, or fibe_mutters_get for downstream events.
  • text:"" is rejected (required field not set).
  • fibe_agents_start_chat — ensure chat is running.
  • fibe_agents_runtime_status — pre-flight health check.
  • fibe_agents_live_state — observe conversation-scoped streaming state.
  • fibe_agents_interrupt — stop a stuck turn.
  • fibe_monitor_follow / fibe_mutters_get — observe Agent's response stream.
  • fibe_feedbacks_list — see if the Agent's reply triggered Player feedback.