go_back
Navigate to the previous page in browser automation workflows, enabling efficient backtracking during web navigation and interaction tasks.
Instructions
Go back to the previous page
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": "go_back"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools-playwright.js:40-43 (handler)MCP tool handler for 'go_back'. Calls browser.goBack() and returns success response.
handler: async () => { await browser.goBack(); return { success: true, message: 'Went back to previous page' }; } - tools-playwright.js:35-39 (schema)Input schema for 'go_back' tool (no required parameters).
inputSchema: { type: 'object', properties: {}, required: [] }, - tools-playwright.js:32-44 (registration)Full tool registration object for 'go_back' returned by createPlaywrightTools, including name, description, schema, and handler.
{ name: 'go_back', description: 'Go back to the previous page', inputSchema: { type: 'object', properties: {}, required: [] }, handler: async () => { await browser.goBack(); return { success: true, message: 'Went back to previous page' }; } }, - browser.js:69-72 (helper)Browser wrapper method goBack() that ensures browser is launched and calls Playwright page.goBack().
async goBack() { await this.ensureLaunched(); await this.page.goBack(); }