tools

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tool defines built-in coding-agent tools as a publishable library.

Layout:

catalog/   — tool names, categories, and the built-in catalog
exposure/  — name resolution and runtime executability
schema/    — provider API JSON schemas and exposure filter
websearch/ — reusable multi-engine web search
todolist/  — TodoList tool state and argument handling

Tool execution and approval UI live in internal/ (coding-agent).

Index

Constants

View Source
const (
	CategoryFile            = catalog.CategoryFile
	CategoryShell           = catalog.CategoryShell
	CategoryWeb             = catalog.CategoryWeb
	CategoryPlanMode        = catalog.CategoryPlanMode
	CategoryStateManagement = catalog.CategoryStateManagement
	CategoryCollaboration   = catalog.CategoryCollaboration
	CategoryGoal            = catalog.CategoryGoal

	ApprovalAutoAllow        = catalog.ApprovalAutoAllow
	ApprovalRequiresApproval = catalog.ApprovalRequiresApproval
	ApprovalAlwaysApprove    = catalog.ApprovalAlwaysApprove

	Read          = catalog.Read
	Write         = catalog.Write
	Edit          = catalog.Edit
	Grep          = catalog.Grep
	Glob          = catalog.Glob
	ReadMediaFile = catalog.ReadMediaFile
	Bash          = catalog.Bash
	FetchURL      = catalog.FetchURL
	WebSearch     = catalog.WebSearch
	CodeSearch    = catalog.CodeSearch
	EnterPlanMode = catalog.EnterPlanMode
	ExitPlanMode  = catalog.ExitPlanMode
	AskUser       = catalog.AskUser
	Skill         = catalog.Skill
	TodoList      = catalog.TodoList
	CreateGoal    = catalog.CreateGoal
	GetGoal       = catalog.GetGoal
	UpdateGoal    = catalog.UpdateGoal
	SetGoalBudget = catalog.SetGoalBudget
)

Variables

This section is empty.

Functions

func FilterProviderTools

func FilterProviderTools(tools []protocol.ToolDefinition) []protocol.ToolDefinition

func IsExecutable

func IsExecutable(name string) bool

func IsProviderExposed

func IsProviderExposed(name string) bool

func Names

func Names() []string

func ProviderDefinitions

func ProviderDefinitions() []protocol.ToolDefinition

func RequiresApproval

func RequiresApproval(name string) bool

func ResolveName

func ResolveName(raw string) (canonical string, known bool)

Types

type Approval

type Approval = catalog.Approval

type Category

type Category = catalog.Category

type Definition

type Definition = catalog.Definition

func All

func All() []Definition

func ByCategory

func ByCategory(category Category) []Definition

func Get

func Get(name string) (Definition, bool)

Directories

Path Synopsis
Package codesearch searches code on GitHub and GitLab.
Package codesearch searches code on GitHub and GitLab.
Package fetchurl fetches remote HTTP(S) content for the FetchURL agent tool.
Package fetchurl fetches remote HTTP(S) content for the FetchURL agent tool.
Package goal implements Goal tool state, types, and a context-scoped store for CreateGoal, GetGoal, UpdateGoal, and SetGoalBudget tool execution.
Package goal implements Goal tool state, types, and a context-scoped store for CreateGoal, GetGoal, UpdateGoal, and SetGoalBudget tool execution.
Package todolist implements TodoList tool state and argument handling.
Package todolist implements TodoList tool state and argument handling.
Package websearch implements reusable multi-engine web search with ENV-based provider selection and DuckDuckGo fallback.
Package websearch implements reusable multi-engine web search with ENV-based provider selection and DuckDuckGo fallback.

Jump to

Keyboard shortcuts

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