dsh-playwright-native
Run the following command in DeepSeek Harness:
dsh plugin install mitao-su/dsh-playwright-native
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install mitao-su/dsh-playwright-native inside the target DSH profile (source at https://github.com/mitao-su/dsh-playwright-native), then restart the profile so the agent gains the playwright passthrough tool.
About this plugin
In DeepSeek Harness, the canonical path to expose a tool to an agent is ctx.tools.register(defineTool(...)). Many plugins choose to decompose a complex CLI into a set of semantic sub-tools, each with its own custom schema, so the agent ends up calling an interface wrapped by a third party. dsh-playwright-native takes the opposite approach: it registers a single passthrough tool named playwright that forwards the agent-supplied args array verbatim and in order to the local playwright binary. No install, test, or show-report splitting. No parameter remapping. What the agent types is exactly what executes.
The implementation rests on just two pillars: args are concatenated as-is onto the command line, and execution runs through ctx.shell. This seam is the same one used by the official bash and pwsh tools, so it inherits sandbox policy, DSH environment variables, output truncation, and timeout/abort classification automatically. A non-zero exit code is returned as an [exit code: N] marker, letting the model decide what to do next. When a playwright test worker fork or a playwright install browser download is blocked by the file sandbox, the plugin retains the sandbox_permissions escalation path, retrying with the narrowest broader scope and prompting for approval before re-execution.
This plugin suits DSH workflows where an agent needs full lifecycle control over Playwright: running E2E test suites, installing browsers, codegen recording, taking screenshots, and opening HTML reports. Every operation flows through native CLI arguments, unconstrained by a custom schema, making behaviour transparent and predictable.
Use Cases
- Agent invokes playwright test to run E2E suites and opens the HTML report
- Agent installs a browser via playwright install then records a script with codegen
- Agent performs screenshots, version checks, and other ops tasks using raw CLI args in a DSH workflow
Best For
- Developers who need an agent to drive the full Playwright lifecycle inside DSH
- Test engineers who prefer raw CLI invocations over semantic wrapper tools
- DSH plugin integrators building automated agent-driven test pipelines
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.