Documentation
¶
Overview ¶
Package openurl implements a built-in toolset that exposes a single tool which opens a fixed URL in the user's default browser. The URL is baked into the toolset definition (the YAML `url` field), so the model only has to call the tool by name — it never supplies the URL itself.
Opening the URL is delegated to pkg/browser, which picks the right platform helper (open / xdg-open / rundll32), so the tool works across macOS, Linux and Windows.
Index ¶
Constants ¶
View Source
const ToolNameOpenURL = "open_url"
Variables ¶
This section is empty.
Functions ¶
func CreateToolSet ¶
CreateToolSet is used by the tools registry.
func Creator ¶ added in v1.132.0
func Creator(_ context.Context, toolset latest.Toolset, _ string, runConfig *config.RuntimeConfig, _ string) (tools.ToolSet, error)
Creator builds this toolset from its YAML declaration. It matches teamloader.ToolsetCreator so it can be registered directly:
teamloader.NewToolsetRegistry(map[string]teamloader.ToolsetCreator{"open_url": openurl.Creator})
Types ¶
Click to show internal directories.
Click to hide internal directories.