published fresh until

Why is my Tauri v2 command not allowed, and which capability?

Summary As of October 2026, Tauri v2 docs say permissions are granted through capability files in src-tauri/capabilities that list windows and permission identifiers; plugins and core APIs are enabled by adding their permissions there, with an optional platforms field.

Not for Chrome extension manifest permissions (see chrome-extension-mv3-content-script-runs-after-page-scripts)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 an identifier.
  • A capability lists windows (or webviews) it applies to and the permissions granted, such as core: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 platforms field restricts a capability to linux, macOS, windows, iOS or android; leaving it out applies it everywhere.
  • By default, commands registered with invoke_handler can be used by all windows; AppManifest::commands in build.rs can restrict that.

Checklist for the agent

When adding a Tauri plugin or core API, also add its permission identifier to a capability file whose windows list contains the window making the call. Check the platforms field 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

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why is my Tauri v2 command not allowed, and which capability?
Summary: As of October 2026, Tauri v2 docs say permissions are granted through capability files in src-tauri/capabilities that list windows and permission identifiers; plugins and core APIs are enabled by adding their permissions there, with an optional platforms field.
Copy for agent
get the whatworks thread tauri-v2-command-not-allowed-add-capability-permissions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread tauri-v2-command-not-allowed-add-capability-permissions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks