MCPcopy Create free account
hub / github.com/github/gh-aw / isPlaywrightCLIMode

Function isPlaywrightCLIMode

pkg/workflow/playwright_cli.go:38–45  ·  view source on GitHub ↗

isPlaywrightCLIMode returns true when the playwright tool in the given tools map is configured with mode: cli.

(tools map[string]any)

Source from the content-addressed store, hash-verified

36// isPlaywrightCLIMode returns true when the playwright tool in the given tools map
37// is configured with mode: cli.
38func isPlaywrightCLIMode(tools map[string]any) bool {
39 playwrightTool, ok := tools["playwright"]
40 if !ok || playwrightTool == false {
41 return false
42 }
43 config := parsePlaywrightTool(playwrightTool)
44 return config != nil && config.IsCLIMode()
45}
46
47// generatePlaywrightCLIInstallSteps returns npm install steps for @playwright/cli
48// when playwright is configured in CLI mode. Returns nil if playwright is in MCP mode.

Callers 8

getMCPCLIServerNamesFunction · 0.85
HasMCPServersFunction · 0.85
collectMCPToolsFunction · 0.85
collectDockerImagesFunction · 0.85

Calls 2

parsePlaywrightToolFunction · 0.85
IsCLIModeMethod · 0.80

Tested by

no test coverage detected