help

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 9 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatHelp

func FormatHelp(toolName, fullDescription string, params []ParamDoc, helpText string) string

FormatHelp formats comprehensive help text for a tool. Combines full description, parameter docs from schema, and co-located helpText.

func RegisterTools

func RegisterTools(server *mcp.SerenaMCPServer, k *kernel.Kernel)

RegisterTools registers the get_tool_help MCP tool with the server.

Types

type GetToolHelpArgs

type GetToolHelpArgs struct {
	ToolName string `json:"tool_name" jsonschema:"required,Name of the tool to get help for"`
}

GetToolHelpArgs is the input schema for the get_tool_help tool.

type HelpSkill

type HelpSkill struct{}

HelpSkill is a ToolProvider adapter that exposes the get_tool_help tool through the skill interface for daemon discovery.

func (*HelpSkill) Description

func (s *HelpSkill) Description() string

Description returns a human-readable description of this skill.

func (*HelpSkill) Init

func (s *HelpSkill) Init(deps skill.SkillDeps) error

Init is a no-op; kernel tools get their dependencies from the daemon, not SkillDeps.

func (*HelpSkill) Name

func (s *HelpSkill) Name() string

Name returns the unique skill identifier.

func (*HelpSkill) Tools

func (s *HelpSkill) Tools() []*mcp.ToolDef

Tools returns the ToolDefs for help. RegisterFn is nil because the daemon owns MCP registration (D-01).

type ParamDoc

type ParamDoc struct {
	Name        string
	Type        string
	Description string
	Required    bool
	EnumValues  []string
}

ParamDoc holds documentation for a single tool parameter.

func ExtractParamDocs

func ExtractParamDocs(inputSchema any) []ParamDoc

ExtractParamDocs extracts parameter documentation from a tool's InputSchema. Uses the same json.Marshal -> map pattern proven in suggest.go.

Jump to

Keyboard shortcuts

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