// Package webmcp provides the Chrome DevTools Protocol
// commands, types, and events for the WebMCP domain.
//
// Generated by the cdproto-gen command.
package webmcp

// Code generated by cdproto-gen. DO NOT EDIT.

import (
	"context"

	"github.com/chromedp/cdproto/cdp"
)

// EnableParams enables the WebMCP domain, allowing events to be sent.
// Enabling the domain will trigger a toolsAdded event for all currently
// registered tools.
type EnableParams struct{}

// Enable enables the WebMCP domain, allowing events to be sent. Enabling the
// domain will trigger a toolsAdded event for all currently registered tools.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/WebMCP#method-enable
func Enable() *EnableParams {
	return &EnableParams{}
}

// Do executes WebMCP.enable against the provided context.
func (p *EnableParams) Do(ctx context.Context) (err error) {
	return cdp.Execute(ctx, CommandEnable, nil, nil)
}

// Command names.
const (
	CommandEnable = "WebMCP.enable"
)
