Documentation
¶
Overview ¶
Package browser is the module of the local Playwright browser, whose tools the MCP module serves.
Index ¶
- type Module
- func (m *Module) Action(ctx context.Context, providerID string, ...) (setup.BrowserProviderOption, error)
- func (m *Module) Apply(_ context.Context, cfg setup.Config) error
- func (m *Module) Change(ctx context.Context, path []string, value string) (modules.Change, error)
- func (m *Module) Close() error
- func (m *Module) Descriptor() setup.BrowserModuleDescriptor
- func (m *Module) ID() string
- func (m *Module) MCPServer(cfg setup.Config) (setup.MCPServerConfig, bool)
- func (m *Module) Settings(context.Context) []modules.Item
- func (m *Module) Status(context.Context) modules.Status
- func (m *Module) Tools() []tools.Executor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func New ¶
func New(runtime *localruntime.Runtime) *Module
func (*Module) Action ¶
func (m *Module) Action(ctx context.Context, providerID string, request setup.BrowserProviderActionRequest) (setup.BrowserProviderOption, error)
Action installs, removes or checks the provider's runtime.
func (*Module) Change ¶
Change picks the provider or run mode, or installs or deletes the selected provider's engine (and so its MCP server).
func (*Module) Descriptor ¶
func (m *Module) Descriptor() setup.BrowserModuleDescriptor
Descriptor is the module with the runtime's install state.