Versions in this module Expand all Collapse all v0 v0.1.0 May 27, 2026 Changes in this version + const MethodHostReady + const MethodMessage + const MethodOpenLink + const MethodSizeChanged + const MethodTeardown + const MethodToolInput + const MethodToolInputPartial + const MethodToolResult + const MethodToolsCall + const Version + type Envelope struct + Method string + Params T + Version string + func NewEnvelope[T any](method string, params T) Envelope[T] + type HostReadyParams struct + AllowedTools []string + ProtocolVersion string + ResourceURI string + WindowID string + type MessageParams struct + Content string + Metadata map[string]interface{} + ResourceURI string + WindowID string + type OpenLinkParams struct + ResourceURI string + URL string + WindowID string + type SizeChangedParams struct + Height int + ResourceURI string + Width int + WindowID string + type TeardownParams struct + Reason string + ResourceURI string + WindowID string + type ToolInputParams struct + ProtocolVersion string + ResourceURI string + ToolInput map[string]interface{} + ToolName string + WindowID string + type ToolInputPartialParams struct + ProtocolVersion string + ResourceURI string + ToolInput map[string]interface{} + ToolName string + WindowID string + type ToolResultParams struct + Content interface{} + Meta map[string]interface{} + ProtocolVersion string + ResourceURI string + StructuredContent map[string]interface{} + ToolName string + WindowID string + type ToolsCallParams struct + Arguments map[string]interface{} + Name string + ResourceURI string + WindowID string