List Tabs
pinchtab_list_instancesList all open browser tabs to retrieve their IDs, URLs, and titles for tab management and automation.
Instructions
List all open browser tabs. Returns tab IDs, URLs, and titles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/instances.ts:14-20 (handler)Handler function for pinchtab_list_instances. Makes a GET request to '/tabs' on the PinchTab server and returns the result (tab IDs, URLs, titles).
async () => { try { return toolResult(await pinch("GET", "/tabs")); } catch (error) { return toolError(error); } }, - src/tools/instances.ts:9-13 (schema)Registration config for pinchtab_list_instances including description and empty input schema (z.object({})).
{ description: "List all open browser tabs. Returns tab IDs, URLs, and titles.", inputSchema: z.object({}), title: "List Tabs", }, - src/tools/instances.ts:6-21 (registration)Registration of the tool via server.registerTool() inside registerInstanceTools(), called from src/tools/index.ts which is called from src/index.ts.
export function registerInstanceTools(server: McpServer) { server.registerTool( "pinchtab_list_instances", { description: "List all open browser tabs. Returns tab IDs, URLs, and titles.", inputSchema: z.object({}), title: "List Tabs", }, async () => { try { return toolResult(await pinch("GET", "/tabs")); } catch (error) { return toolError(error); } }, );