GetGyroscopeTool

class GetGyroscopeTool(context: Context) : McpTool

Reads the TYPE_GYROSCOPE sensor (x/y/z angular rate in rad/s). No permissions. With duration_ms (1-5000) it collects a series of samples; otherwise a single reading. See readSensor. Output: latest x, y, z, accuracy, timestamp, plus a readings list of {x,y,z,timestamp}. Returns ToolResult.error when the device has no gyroscope.

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