So how does this work? First, from initiation on the language model side: the LLM has a preposterously large text blob injected into its context at all times describing all the tools it has access to. one of those is the device tool tree.
The device.invoke tool's prompt text reads:
"To use a command the user has not granted yet, just invoke it; the device prompts the user and runs only on approval."
And also in the context window is the tool description for notifications.get tool, which reads:
"Reports the device's current active notifications — app, title, body, sender, and the notification key used by notifications.action. Use when the user's current notifications are needed."
So if in the course of talking to muse there is any reason for the LLM to think it needs notifications access - and the space of things that could lead to this are effectively infinite - then the LLM will attempt to invoke the notifications.get tool which launches the user-facing process in next post.