Class CaptureService.CaptureCodegenStartRequest

java.lang.Object
com.shaft.mcp.CaptureService.CaptureCodegenStartRequest
Enclosing class:
CaptureService

public static final class CaptureService.CaptureCodegenStartRequest extends Object
Structured request fields for the Playwright-codegen-compatible MCP start tool.
  • Field Details

    • targetUrl

      @ToolParam(description="initial http, https, or file URL; blank or omitted opens an empty browser at about:blank") public String targetUrl
    • browser

      @ToolParam(description="Chrome or Edge; blank selects Chrome") public String browser
    • outputPath

      @ToolParam(description="recording/capture JSON output path; blank selects a timestamped recording") public String outputPath
    • headless

      @ToolParam(description="whether to launch without a visible browser window; unspecified defaults to headless per repo policy") public boolean headless
    • targetLanguage

      @ToolParam(description="requested codegen target language; SHAFT always generates Java TestNG regardless, other values are accepted for compatibility with a warning") public String targetLanguage
    • testIdAttribute

      @ToolParam(description="preferred test id attribute (e.g. data-testid); takes priority over SHAFT's default test id attribute list when locating elements") public String testIdAttribute
    • channel

      @ToolParam(description="Chromium channel hint (e.g. chrome, msedge); mapped through SHAFT browser selection") public String channel
    • deviceName

      @ToolParam(description="device emulation hint") public String deviceName
    • viewportSize

      @ToolParam(description="viewport size as width,height in pixels (e.g. 1280,720)") public String viewportSize
    • colorScheme

      @ToolParam(description="preferred color scheme hint (e.g. light or dark)") public String colorScheme
    • geolocation

      @ToolParam(description="geolocation as latitude,longitude") public String geolocation
    • ignoreHttpsErrors

      @ToolParam(description="whether HTTPS certificate errors are ignored") public boolean ignoreHttpsErrors
    • blockServiceWorkers

      @ToolParam(description="whether service workers should be blocked") public boolean blockServiceWorkers
    • loadStoragePath

      @ToolParam(description="storage-state input path to restore cookies/local storage from before recording starts") public String loadStoragePath
    • saveStoragePath

      @ToolParam(description="storage-state output path to persist cookies/local storage to when the session ends") public String saveStoragePath
    • language

      @ToolParam(description="locale/language hint (e.g. en-US)") public String language
    • timezone

      @ToolParam(description="timezone hint (e.g. America/Los_Angeles)") public String timezone
    • proxyServer

      @ToolParam(description="proxy server URL") public String proxyServer
    • proxyBypass

      @ToolParam(description="comma-separated proxy bypass list") public String proxyBypass
    • saveHarPath

      @ToolParam(description="HAR output path; blank disables HAR capture") public String saveHarPath
    • saveHarGlob

      @ToolParam(description="HAR URL glob filter restricting which requests are written to the HAR") public String saveHarGlob
    • timeoutMillis

      @ToolParam(description="maximum browser timeout in milliseconds; 0 or unset applies no explicit timeout") public long timeoutMillis
    • userAgent

      @ToolParam(description="user-agent override") public String userAgent
    • userDataDirectory

      @ToolParam(description="persistent browser profile directory; blank uses a temporary profile") public String userDataDirectory
    • sessionGoal

      @ToolParam(description="optional user intent for the journey; drives generated test class and method names") public String sessionGoal
    • apiCapture

      @ToolParam(description="whether API network recording is enabled for this session") public boolean apiCapture
    • networkOptions

      @ToolParam(description="network capture filtering options; ignored unless apiCapture is set") public NetworkCaptureOptions networkOptions
    • saveHarContent

      @ToolParam(description="HAR body-content emission mode: blank or none (the default) keeps truncated network-trace preview bodies, full emits complete request/response bodies from API-capture's full-body store; opt-in because full bodies are not scrubbed for secrets/PII") public String saveHarContent
  • Constructor Details

    • CaptureCodegenStartRequest

      public CaptureCodegenStartRequest()