Documentation
¶
Overview ¶
Package tools supplies the conversation-scoped browser tools shared by MCP and the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretStore ¶
type SecretStore interface {
Lookup(name, project string) (secrets.View, error)
Reveal(names []string, use secrets.Use) (map[string]string, error)
}
SecretStore is the part of the machine's safe the browser tools use: a project's view of a secret and its value.
type Service ¶
type Service struct {
Manager *agentbrowser.Manager
// Secrets and Identity are runtime-owned; tool arguments cannot supply project authority.
Secrets SecretStore
Identity func(string) (secrets.Use, error)
RequestSecret func(context.Context, string, string, string, string) (string, error)
Access *agentbrowser.ProfileAccess
// contains filtered or unexported fields
}
Service keeps snapshots and bounded recordings across stateless MCP requests. Close releases subscriptions before the browser manager is closed.
type Tools ¶
Tools binds a call to the connection's conversation, never an argument supplied by the agent.
func (Tools) Call ¶
func (t Tools) Call(ctx context.Context, name string, args *jsvalue.Object) (result *jsvalue.Object)
Call returns native MCP content, including screenshots, through the common tool path.
func (Tools) Instructions ¶
Instructions tells agents that browser setup and passwords are not their responsibility.