ReadClipboardTool

Reads the system primary clip via ClipboardManager, coercing the first item to text. No permissions required (though on API 29+ the OS only allows access to the foreground app or default IME). Output always includes has_content (whether a primary clip exists), is_text (clip MIME type starts with text/), and text (coerced string, or null when empty/unavailable).

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult