McpResourceLinkContent class

A resource-link content block in an MCP tool response.

Extends

Methods

toJSON()

Constructor Details

McpResourceLinkContent(McpResourceLinkContentInit)

new McpResourceLinkContent(init: McpResourceLinkContentInit)

Parameters

Property Details

description

description?: string

Property Value

string

mimeType

mimeType?: string

Property Value

string

name

name?: string

Property Value

string

type

type: "resource_link"

Property Value

"resource_link"

uri

uri: string

Property Value

string

Method Details

toJSON()

function toJSON(): Record<string, unknown>

Returns

Record<string, unknown>