# Interface ToolResult

MCP tool result.

Uses mutable properties for compatibility with secure-handler sanitization (which rewrites `text` in-place).

interface ToolResult {
content: TextContent[];
isError?: boolean;
structuredContent?: Record<string, unknown>;
_meta?: Record<string, unknown>;
}

- Defined in packages/nexus-agents/src/mcp/tools/tool-result.ts:58

##### Index

### Properties

content
isError?
structuredContent?
_meta?

## Properties

### content

content: TextContent[]

- Defined in packages/nexus-agents/src/mcp/tools/tool-result.ts:59

### `Optional` isError

isError?: boolean

- Defined in packages/nexus-agents/src/mcp/tools/tool-result.ts:60

### `Optional` structuredContent

structuredContent?: Record<string, unknown>

Structured output for SDK outputSchema validation (Issue #1117)

- Defined in packages/nexus-agents/src/mcp/tools/tool-result.ts:62

### `Optional`_meta

_meta?: Record<string, unknown>

Out-of-band metadata, never validated against `outputSchema`. The structured error envelope (#2649) is carried here under `ERROR_ENVELOPE_META_KEY`.

- Defined in packages/nexus-agents/src/mcp/tools/tool-result.ts:68