Documentation
¶
Overview ¶
Package write provides full-file write operations.
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 {
Path string `json:"path" jsonschema:"required,description=File path to write (absolute or relative)" validate:"required"`
Content string `json:"content" jsonschema:"required,description=Complete file content to write" validate:"required"`
}
Inputs defines the parameters for the Write tool.
type Tool ¶
Tool implements full-file writing.
Click to show internal directories.
Click to hide internal directories.