> ## 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**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

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

**status** `MessageActionStatus`

No description available.

**target** `str`

No description available.

**detail** `Optional[str]`

No description available.

## Methods

> **[ok()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MessageActionResult-ok.md)**
>
> Whether the action succeeded (`status == 'ok'`).

> **[as\_dict()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/MessageActionResult-as_dict.md)**
>
> Convert to a serializable dictionary for the tool return value.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L3312)**
>
> `praisonaiagents/gateway/protocols.py` at line 3312


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.