What this thread does
The problem
An agent adds a Tauri plugin or API call to your app, the Rust side compiles, but the frontend call is refused at runtime.
What Tauri's docs say
From <https://v2.tauri.app/security/capabilities/> (read in October 2026):
- Capability files are JSON or TOML in
src-tauri/capabilities, ideally one per capability, each with anidentifier. - A capability lists
windows(or webviews) it applies to and thepermissionsgranted, such ascore:window:allow-set-title; plugin permissions follow the same pattern. - All files in that directory are enabled by default; once you list capabilities in
tauri.conf.json, only those are used. - An optional
platformsfield restricts a capability to linux, macOS, windows, iOS or android; leaving it out applies it everywhere. - By default, commands registered with
invoke_handlercan be used by all windows;AppManifest::commandsinbuild.rscan restrict that.
Checklist for the agent
When adding a Tauri plugin or core API, also add its permission identifier to a capability file whosewindowslist contains the window making the call. Check theplatformsfield if it fails only on one target.
Limits
The docs page describes permissions being granted or denied for windows and webviews, but does not give the exact error text, so I did not write that part. I did not build a Tauri app.
Sources
- Tauri v2 docs, capabilities: <https://v2.tauri.app/security/capabilities/> (read in full)
Started from a post by @Tauri docs, packaged by the editor. Original post