Package-level declarations

Types

Link copied to clipboard

Base64-encoded audio content.

Link copied to clipboard

Binary resource contents encoded as base64.

Link copied to clipboard
interface CallToolResult

The result returned from tool execution.

Link copied to clipboard

Any content block allowed in tool responses.

Link copied to clipboard
Link copied to clipboard
sealed interface ElicitationAction
Link copied to clipboard

Form-based elicitation request parameters.

Link copied to clipboard

Elicitation request parameters.

Link copied to clipboard

Result returned by an elicitation request.

Link copied to clipboard

URL-based elicitation request parameters.

Link copied to clipboard

Embedded resource content block.

Link copied to clipboard

Base64-encoded image content.

Link copied to clipboard
interface InputSchema

JSON Schema definition for tool input parameters.

Link copied to clipboard

JSON Schema property definition.

Link copied to clipboard
interface LooseContentBlock : ContentBlockBase, ReadonlyRecord<ERROR CLASS: Symbol not found for JsString, ERROR CLASS: Symbol not found for JsAny??>

Looser content block shape accepted by many MCP tool implementations.

Link copied to clipboard

ModelContext interface on navigator.modelContext.

Link copied to clipboard

Context provided to models via provideContext().

Link copied to clipboard

Registration handle returned by registration methods.

Link copied to clipboard

Resource contents returned by resource reads.

Link copied to clipboard

Link to an externally retrievable resource.

Link copied to clipboard

Plain text content.

Link copied to clipboard

Text resource contents.

Link copied to clipboard
interface ToolAnnotations

Annotations providing hints about tool behavior.

Link copied to clipboard
class ToolCallEvent<TArgs : ERROR CLASS: Symbol not found for JsAny??> : Event

Event dispatched when a tool is called.

Link copied to clipboard
interface ToolDescriptor<TArgs : ERROR CLASS: Symbol not found for JsAny??>

Tool descriptor for the Web Model Context API.

Link copied to clipboard

Per-call execution context provided to tool handlers.

Link copied to clipboard
interface ToolListItem

Tool information returned by listTools(). Provides metadata about a registered tool without exposing the execute function.

Link copied to clipboard
interface ToolName<TArgs : ERROR CLASS: Symbol not found for JsAny??>
Link copied to clipboard

Alias for CallToolResult for API consistency.

Properties

Functions

Link copied to clipboard
suspend fun <TArgs : ERROR CLASS: Symbol not found for JsAny??> ModelContext.callTool(options: ModelContext.CallToolOptions<TArgs>): ToolResponse
Link copied to clipboard
Link copied to clipboard
inline fun <TArgs : ERROR CLASS: Symbol not found for JsAny??> ToolName(value: String): ToolName<TArgs>