grant
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Grant an app's permissions up front, so a first-launch permission dialog never appears to block the flow. These call app_grant.
grant
grant(app: string, ...permissions: string[]): Promise<void>
Examples
Grant two permissions before a flow
await device.grant('com.example.shop', 'camera', 'location')