tools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tools implements MCP tool definitions for sandbox interaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDeleteTool

type FileDeleteTool struct {
	// contains filtered or unexported fields
}

func (*FileDeleteTool) Definition

func (t *FileDeleteTool) Definition() mcp.ToolDefinition

func (*FileDeleteTool) Execute

type FileListTool

type FileListTool struct {
	// contains filtered or unexported fields
}

func (*FileListTool) Definition

func (t *FileListTool) Definition() mcp.ToolDefinition

func (*FileListTool) Execute

type FileReadTool

type FileReadTool struct {
	// contains filtered or unexported fields
}

func (*FileReadTool) Definition

func (t *FileReadTool) Definition() mcp.ToolDefinition

func (*FileReadTool) Execute

type FileSearchTool

type FileSearchTool struct {
	// contains filtered or unexported fields
}

func (*FileSearchTool) Definition

func (t *FileSearchTool) Definition() mcp.ToolDefinition

func (*FileSearchTool) Execute

type FileWriteTool

type FileWriteTool struct {
	// contains filtered or unexported fields
}

func (*FileWriteTool) Definition

func (t *FileWriteTool) Definition() mcp.ToolDefinition

func (*FileWriteTool) Execute

type GitCommitTool

type GitCommitTool struct {
	// contains filtered or unexported fields
}

func (*GitCommitTool) Definition

func (t *GitCommitTool) Definition() mcp.ToolDefinition

func (*GitCommitTool) Execute

type GitDiffTool

type GitDiffTool struct {
	// contains filtered or unexported fields
}

func (*GitDiffTool) Definition

func (t *GitDiffTool) Definition() mcp.ToolDefinition

func (*GitDiffTool) Execute

type GitLogTool

type GitLogTool struct {
	// contains filtered or unexported fields
}

func (*GitLogTool) Definition

func (t *GitLogTool) Definition() mcp.ToolDefinition

func (*GitLogTool) Execute

func (t *GitLogTool) Execute(ctx context.Context, args json.RawMessage) mcp.ToolCallResult

type GitStatusTool

type GitStatusTool struct {
	// contains filtered or unexported fields
}

func (*GitStatusTool) Definition

func (t *GitStatusTool) Definition() mcp.ToolDefinition

func (*GitStatusTool) Execute

type Options

type Options struct {
	ReadOnly        bool
	AllowedCommands []string
}

Options configures the tool set.

type TerminalExecTool

type TerminalExecTool struct {
	// contains filtered or unexported fields
}

TerminalExecTool executes shell commands.

func (*TerminalExecTool) Definition

func (t *TerminalExecTool) Definition() mcp.ToolDefinition

func (*TerminalExecTool) Execute

type ToolSet

type ToolSet struct {
	// contains filtered or unexported fields
}

ToolSet holds all available tools for a workspace.

func NewToolSet

func NewToolSet(workspace string, opts Options) *ToolSet

NewToolSet creates a tool set for the given workspace.

func (*ToolSet) All

func (ts *ToolSet) All() []mcp.Tool

All returns all configured tools.

Jump to

Keyboard shortcuts

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