ModelContext

ModelContext interface on navigator.modelContext.

Types

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

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

Executes a registered tool.

Link copied to clipboard

Clears all context (base + dynamic registrations).

Link copied to clipboard
open fun dispatchEvent(event: Event): Boolean
Link copied to clipboard

Lists currently registered tools.

Link copied to clipboard

Replaces base context with provided tools.

Link copied to clipboard

Registers a dynamic tool with explicitly typed args/result.

Link copied to clipboard
fun unregisterTool(name: ToolName<*>)

Unregisters a dynamic tool by name.

Link copied to clipboard