@maxhealth.tech/prefab / mcp / McpDisplayResult
Type Alias: McpDisplayResult<S>
ts
type McpDisplayResult<S> = McpToolResult<S> & object;Defined in: mcp/types.ts:116
A tool result whose structuredContent is guaranteed present.
McpToolResult.structuredContent is optional because a hand-written result may legitimately omit it. Every prefab display helper populates it, and saying so in the return type spares callers a null check on a field that is never absent — reading result.structuredContent.view should not need one.
Assignable to McpToolResult<S> in every position, so widening a helper's return type to this breaks nothing.
Type Declaration
structuredContent
ts
structuredContent: S;Type Parameters
| Type Parameter |
|---|
S |