toolnames

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package toolnames maps Claude Code's built-in tool names to the agentx built-in tools that play the same role. Hook matchers and permission rules written for Claude Code, such as "Edit|Write" or "Bash(npm *)", use it to select the agentx tools. MCP tools already share Claude Code's mcp__<server>__<tool> naming.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentX

func AgentX(name string) (string, bool)

AgentX returns the agentx built-in tool named name in Claude Code.

func All

func All() []string

All returns the Claude Code tool names that have an agentx counterpart, sorted.

func Claude

func Claude(name string) []string

Claude returns the Claude Code names of an agentx built-in tool, sorted.

func PatchPaths

func PatchPaths(args json.RawMessage) []string

PatchPaths returns the files an apply_patch call, whose arguments are {"input": patch}, adds, updates, deletes or moves to. Like the tool's parser it accepts whitespace around the markers; it may report extra paths, for example from context lines that look like markers, but never misses one the tool would touch.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL