> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Message Action Result • AI Agent SDK

> MessageActionResult: Outcome of an agent-initiated message mutation (Issue #5054).

# MessageActionResult

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Outcome of an agent-initiated message mutation (Issue #5054).

Shared typed result for the `edit` and `delete` verbs of the unified
message-action surface. Every call resolves to exactly one
:data:`MessageActionStatus`, so a channel that cannot edit/delete returns a
typed `unsupported` outcome instead of raising — identical to how
:class:`ReactionResult` and :class:`ThreadResult` degrade.

Attributes:
status: The outcome (`ok` / `unsupported` / `failed` /
`no_route`).
target: The resolved target the action was routed to.
detail: Optional model-readable explanation.

## Properties

<ResponseField name="status" type="MessageActionStatus">
  No description available.
</ResponseField>

<ResponseField name="target" type="str">
  No description available.
</ResponseField>

<ResponseField name="detail" type="Optional[str]">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="ok()" icon="function" href="../functions/MessageActionResult-ok">
    Whether the action succeeded (`status == 'ok'`).
  </Card>

  <Card title="as_dict()" icon="function" href="../functions/MessageActionResult-as_dict">
    Convert to a serializable dictionary for the tool return value.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L3093">
  `praisonaiagents/gateway/protocols.py` at line 3093
</Card>
