Skip to content

feat: show tool parameters in approval dialog for better transparency #5842

@louis-jan

Description

@louis-jan

User Story

As a user, I want to see the tool parameters in the approval dialog so that I can make informed decisions about whether to allow a tool to execute with specific parameters.

Current Problem

When the AI wants to use a tool (like file system operations, web requests, calculations, etc.), I'm presented with an approval dialog that only shows:

  • The tool name
  • A generic message asking for permission

This lacks crucial information about what exactly the tool will do, making it difficult to:

  • Understand the scope of the operation
  • Verify the parameters are correct
  • Make informed security decisions
  • Trust the AI's intended actions

Example Scenario

Currently when the AI wants to use a file operation tool, I see:

The AI wants to use: file_system_tool
Do you approve?
[Allow] [Deny]

But I can't see:

  • Which file will be accessed?
  • What operation (read/write/delete)?
  • What data will be written?
  • What directory it's targeting?

Expected Behavior

I want the approval dialog to display:

Tool Information

  • Tool Name: Clear identification of which tool
  • Tool Parameters: All parameters being passed to the tool
  • Operation Summary: Brief description of what will happen

Example Improved Dialog

Tool Approval Request

Tool: File System Tool
Operation: Write file

Parameters:
- Path: /Users/john/documents/report.txt
- Content: "Meeting notes from today..."
- Mode: Create new file

This tool will create a new file with the specified content.

[Show Details] [Allow] [Deny]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions