pool_test
Test asynchronous responses within the browser pool MCP server to verify functionality and ensure reliable operation of concurrent, isolated Playwright browser sessions.
Instructions
Test async response
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "pool_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Implementation Reference
- index.js:479-491 (handler)The handler function for the 'pool_test' tool, which logs the input, simulates an asynchronous delay, and returns a formatted response.
server.tool('pool_test', 'Test async response', { message: z.string() }, async (args) => { log(`[pool_test] called with: ${JSON.stringify(args)}`); // Simulate async operation await new Promise(r => setTimeout(r, 100)); const response = { content: [{ type: 'text', text: `Received: ${args.message}` }] }; log(`[pool_test] returning: ${JSON.stringify(response)}`); return response;