McpAppActions

What an app does with its views' requests; the chat-level part of McpAppHost (the view handles sizing, display modes and tool approval itself).

Properties

Link copied to clipboard
open val openLink: (String) -> Unit?

ui/open-link: open an http(s) url; null opens it with the platform's LocalUriHandler.

Functions

Link copied to clipboard
open fun message(text: String): Boolean

ui/message: send text as the user's next message. Return false to decline.

Link copied to clipboard
open fun modelContext(context: McpAppModelContext)

ui/update-model-context: keep context for the model's next turn (replacing the view's previous one).