playwright_go_back
Navigate back in browser history during web automation tasks to return to previous pages.
Instructions
Navigate back in browser history
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "playwright_go_back"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/browser/navigation.ts:96-106 (handler)GoBackTool class implementing the execute method for playwright_go_back tool, which calls page.goBack()
export class GoBackTool extends BrowserToolBase { /** * Execute the go back tool */ async execute(args: any, context: ToolContext): Promise<ToolResponse> { return this.safeExecute(context, async (page) => { await page.goBack(); return createSuccessResponse("Navigated back in browser history"); }); } } - src/tools.ts:370-377 (schema)Tool schema definition including name, description, and empty input schema for playwright_go_back
name: "playwright_go_back", description: "Navigate back in browser history", inputSchema: { type: "object", properties: {}, required: [], }, }, - src/toolHandler.ts:540-541 (registration)Registration in the main tool handler switch case, dispatching to goBackTool.execute
case "playwright_go_back": return await goBackTool.execute(args, context); - src/toolHandler.ts:343-343 (registration)Instantiation of the goBackTool instance during tool initialization
if (!goBackTool) goBackTool = new GoBackTool(server); - src/tools.ts:467-467 (registration)Inclusion in BROWSER_TOOLS array for conditional browser launching
"playwright_go_back",