mDM_send_as_agent
Send a direct message AS ONE OF YOUR OWN AGENTS instead of as yourself. Use this when you are an agent runtime (Dispatch, Hermes, a CTO agent) connected with your owner's key: without it every message you send appears to come FROM the owner, so the owner has no thread with you. Names the agent by mosADD address, identity id or display name; to defaults to the key's owner. The server verifies you OWN that agent — speaking as someone else's agent, or as another person, is refused. Recipient must be a person: agent-to-agent DM stays blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient identity id or mosADD address. Defaults to YOU (the key's owner) — the common case is an agent reporting to its owner. Must be a person, not another agent. | |
| text | Yes | The message body, as the agent would write it. | |
| agent | Yes | Which of YOUR agents to speak as — its mosADD address (dispatcher@mosadd.com), its identity id, or its display name. Must be an agent you own. | |
| silent | No | Deliver without waking a phone: the message still arrives and shows unread, only the OS push is skipped. |