# Add remaining tool permissions \(\#46164\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2b6e935b09e4367557157f09c659b87089d70b57)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2b6e935b09e4367557157f09c659b87089d70b57

Requested commit: 2b6e935b09e4367557157f09c659b87089d70b57

Commit: 2b6e935b09e4367557157f09c659b87089d70b57

Tree: e67a7b69b846c9b6cdad60dd2da88bc7eb194b71

Author: Richard Feldman

Committer: GitHub

## Message

```
Add remaining tool permissions (#46164)

Add permission checking to the remaining 7 tools that require granular
permissions:
- `edit_file`: Checks path against permission rules  
- `delete_path`: Checks path against permission rules
- `move_path`: Checks both source and destination paths
- `create_directory`: Checks path against permission rules
- `save_file`: Checks all paths, denies if any are blocked
- `fetch`: Checks URL against permission rules
- `web_search`: Checks query against permission rules

Each tool follows the pattern established in PR #46155 (terminal tool):
- `Allow` = proceed without prompting
- `Deny` = return error immediately
- `Confirm` = prompt user for confirmation

The deny > confirm > allow precedence is enforced by the
`decide_permission_from_settings()` function.

Release Notes:

- N/A

---------

Co-authored-by: Amp <amp@ampcode.com>
```

## Parents

- [8a1cf4d4995529f9892bf346dbcc1e2fa310257a](https://git.cafe/gitcafe/zed/commit/8a1cf4d4995529f9892bf346dbcc1e2fa310257a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2b6e935b09e4367557157f09c659b87089d70b57?format=markdown)
