@tontoko/fast-playwright-mcp 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,8 @@ class BatchExecutor {
42
42
  for (const [index, step] of steps.entries()) {
43
43
  const tool = this.toolRegistry.get(step.tool);
44
44
  if (!tool) {
45
- throw new Error(`Unknown tool: ${step.tool}`);
45
+ const availableTools = Array.from(this.toolRegistry.keys()).filter((name) => name.startsWith("browser_") && name !== "browser_batch_execute").sort((a, b) => a.localeCompare(b)).join(",");
46
+ throw new Error(`Unknown tool: "${step.tool}" at step ${index}. Available tools: ${availableTools}`);
46
47
  }
47
48
  try {
48
49
  const parseResult = tool.schema.inputSchema.safeParse({
@@ -26,7 +26,7 @@ var batchExecuteTool = defineTool({
26
26
  schema: {
27
27
  name: "browser_batch_execute",
28
28
  title: "Batch Execute Browser Actions",
29
- description: `Execute multiple browser actions in sequence with optimized response handling.RECOMMENDED:Use this tool instead of individual actions when performing multiple operations to significantly reduce token usage and improve performance.BY DEFAULT use for:form filling(multiple type→click),multi-step navigation,any workflow with 2+ known steps.Saves 90% tokens vs individual calls.globalExpectation:{includeSnapshot:false,snapshotOptions:{selector:"#app"},diffOptions:{enabled:true}}.Per-step override:steps[].expectation.Example:[{tool:"browser_navigate",arguments:{url:"https://example.com"}},{tool:"browser_type",arguments:{element:"username",ref:"#user",text:"john"}},{tool:"browser_click",arguments:{element:"submit",ref:"#btn"}}].`,
29
+ description: `Execute multiple browser actions in sequence with optimized response handling.RECOMMENDED:Use this tool instead of individual actions when performing multiple operations to significantly reduce token usage and improve performance.BY DEFAULT use for:form filling(multiple type→click),multi-step navigation,any workflow with 2+ known steps.Saves 90% tokens vs individual calls.globalExpectation:{includeSnapshot:false,snapshotOptions:{selector:"#app"},diffOptions:{enabled:true}}.Per-step override:steps[].expectation.Example:[{tool:"browser_navigate",arguments:{url:"https://example.com"}},{tool:"browser_type",arguments:{element:"username",ref:"#user",text:"john"}},{tool:"browser_click",arguments:{element:"submit",ref:"#btn"}}].Tool names must match exactly(e.g.browser_navigate,browser_click,browser_type).`,
30
30
  inputSchema: batchExecuteSchema,
31
31
  type: "destructive"
32
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tontoko/fast-playwright-mcp",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },