GetTtsInfoTool

class GetTtsInfoTool(context: Context) : McpTool

Reports the default android.speech.tts.TextToSpeech engine and its supported languages. No permissions required. Initializes a one-shot engine (bounded by TTS_INIT_TIMEOUT_MS), reads its default engine and available languages (as BCP-47 tags) with a single getAvailableLanguages() call made from the tool coroutine rather than the init callback, then shuts it down — on every path, including init error, timeout, and cancellation (see useTtsEngine).

Output map: default_engine (String package, "unknown" if unavailable), available_languages (sorted List<String>), language_count (Int).

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 outputSchema: Map<String, Any>
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