Documentation
¶
Overview ¶
Package edit provides targeted string replacement in files.
Index ¶
- type Inputs
- type Tool
- func (t *Tool) Execute(ctx context.Context, args map[string]any) (string, error)
- func (t *Tool) Name() string
- func (t *Tool) Paths(ctx context.Context, args map[string]any) (read, write []string, err error)
- func (t *Tool) Post(ctx context.Context, args map[string]any)
- func (t *Tool) Pre(ctx context.Context, args map[string]any) error
- func (t *Tool) Preview(ctx context.Context, args map[string]any) (string, error)
- func (t *Tool) Schema() tool.Schema
- func (t *Tool) WantsLSP() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
FilePath string `` /* 136-byte string literal not displayed */
OldString string `` /* 136-byte string literal not displayed */
NewString string `` /* 136-byte string literal not displayed */
ReplaceAll bool `json:"replace_all" jsonschema:"description=Replace all occurrences of old_string (default false)"`
}
Inputs defines the parameters for the Edit tool.
type Tool ¶
Tool implements targeted string replacement.
Click to show internal directories.
Click to hide internal directories.