{"version":"2.1.268","anchor":"addon-tools-gain-a-permissioncard-field-and-a-wrapping-helpe","canonical_anchor":"permission-ask-dialogs-can-now-render-a-structured-card-s","heading":"Tool permission prompts can show a structured explanation card","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.268\/e\/addon-tools-gain-a-permissioncard-field-and-a-wrapping-helpe","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.268","markdown":"### Tool permission prompts can show a structured explanation card\n\nPermission-ask dialogs can now show a structured 'card' explaining the decision, and addon tools can supply one.\n\n**Unclear.** What permissionCard controls and what the wrapping helper (B_t) actually does are not specified in the finding.\n\n**What**\n\n- Tool-permission prompt info can now include an optional structured `card` (with a question, lines, and values) shown when the permission decision reason is a safety check or similar, there's no matched ask-rule, and no denial-limit fallback applies. The card content comes from the tool's own `permissionCard` callback.\n\n- The generic addon-tool factory now includes a `permissionCard` property in the tool definition it builds, and wraps the finished tool object with a helper before returning it, so addon tools can supply this card.\n\n**Why** This gives you a clearer, structured explanation (instead of plain text) when Claude Code asks permission to run a tool for safety reasons, and extends that capability to addon tools.\n\n- Area: Elsewhere\n- Names: `permissionCard`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}