anthropics / anthropics/claude-code-action

Documentation missing list of available tools for --allowed-tools configuration

未关闭
#883 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
documentation enhancement p3
主要语言
TypeScript
星标
8.9k
派生
2.1k
平均合并
3 天 9 小时
30 天内合并 PR
10

描述

## Problem

The [configuration documentation](https://github.com/anthropics/claude-code-action/blob/main/docs/configuration.md) mentions the `--allowed-tools` parameter but doesn't list what tools are actually available to specify. This makes it difficult for users to configure the action properly.

The current docs show example usage like:
```yaml
claude_args: |
--allowedTools "Bash(git:*),Edit,Read"
```

But users have no reference for what other tools exist beyond the ones shown in examples.

## Suggested Solution

Add a section to the configuration documentation that lists all available built-in tools:

**File Operations:**
- `Edit` - Edit files
- `Read` - Read files
- `Write` - Write files
- `Glob` - File pattern matching
- `Grep` - Content search

**Execution:**
- `Bash` - Execute shell commands (requires pattern specification, e.g., `Bash(git:*)` or `Bash(npm install)`)

**Web:**
- `WebFetch` - Fetch web content
- `WebSearch` - Search the web

**Other:**
- `NotebookRead` / `NotebookEdit` - Work with Jupyter notebooks
- `MultiEdit` - Batch file edits

**Note:** MCP (Model Context Protocol) tools follow the pattern `mcp____`

## Additional Context

This information is available in the [Claude Code CLI reference](https://code.claude.com/docs/en/cli-reference), but users configuring the GitHub Action shouldn't need to hunt through separate documentation to find what tools they can configure.

Also worth clarifying the distinction between:
- `--allowedTools` - Tools that execute without prompting for permission
- `--tools` - Restricts which tools are available at all

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。