Files
2025-11-30 09:03:44 +08:00

32 lines
639 B
JavaScript
Executable File

#!/usr/bin/env node
/**
* MCP Server: chrome-devtools
* Server Version: 0.10.2
* Generated: 2025-11-23
* Tool: list_pages
*
* Get a list of pages open in the browser.
*/
import { program } from 'commander';
import { callTool } from './mcp_client.js';
program
.name('list_pages')
.description('Get a list of pages open in the browser.')
// No options required
.parse();
const options = program.opts();
const args = {};
// Call the tool
try {
const result = await callTool('chrome-devtools', 'list_pages', args);
console.log(result);
} catch (error) {
console.error('Error:', error.message);
process.exit(1);
}