Documentation
¶
Overview ¶
Package loadtools provides a meta-tool for on-demand loading of deferred tool schemas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputs ¶
type Inputs struct {
Tools []string `json:"tools,omitempty" jsonschema:"description=Tool names or glob patterns to load"`
Server string `json:"server,omitempty" jsonschema:"description=MCP server name - loads all its deferred tools"`
}
Inputs defines the parameters for the LoadTools tool.
type Tool ¶
Tool loads deferred tool schemas on demand. When called, it marks the requested tools as loaded and triggers a state rebuild so they appear in subsequent request.Tools.
func New ¶
New creates a LoadTools tool. deferred is the current set of deferred tools (for name resolution and descriptions). onLoad is called with the resolved tool names — it must update the loaded set and rebuild state.
func (*Tool) Execute ¶
Execute resolves the requested tools, loads them, and returns their descriptions.
func (*Tool) Parallel ¶
Parallel returns false because LoadTools triggers a full state rebuild via onLoad.
func (*Tool) Sandboxable ¶
Sandboxable returns false as this tool has no filesystem operations.