ScrollNodeTool

class ScrollNodeTool(context: Context) : McpTool

scroll_node — scroll a scrollable node forward or backward via ACTION_SCROLL_FORWARD / ACTION_SCROLL_BACKWARD.

Params: the shared selector plus optional direction (forward default, or backward/back). An unrecognized direction returns a validation error. See perform; on success returns success, the action (scroll_forward/scroll_backward), and the matched view_id.

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