SetRingtoneTool

class SetRingtoneTool(context: Context) : McpTool

Sets the default sound for a given type (ringtone / notification / alarm) via RingtoneManager.setActualDefaultRingtoneUri. Pass uri = "silent" to clear it.

Requires the special WRITE_SETTINGS access (Settings.System.canWrite); without it the tool returns an error pointing the user to system settings. Non-silent URIs must use the content:// scheme — file:// and other schemes are rejected.

Output keys: success, type, uri, is_silent.

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