Method FromResourceLink
FromResourceLink(string, string, string, string, long?)
Creates a pointer to a resource the caller may fetch on demand. This is the correct way to return a produced artifact or any payload above the inline threshold.
public static McpContent FromResourceLink(string uri, string name, string description, string mimeType, long? size)
Parameters
uristringResource URI resolvable through
resources/read.namestringShort display name.
descriptionstringWhat the resource contains.
mimeTypestringMIME type, when known.
sizelong?Size in bytes, when known.