webscraping_ai_account
Get your WebScraping.AI account details to view subscription status and usage limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:348-364 (registration)Registration of the 'webscraping_ai_account' tool on the MCP server via server.tool(). It has an empty schema (no params) and calls the async handler.
server.tool( 'webscraping_ai_account', {}, async () => { try { const result = await client.account(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: error.message }], isError: true }; } } ); - src/index.js:351-363 (handler)Handler function for 'webscraping_ai_account'. It calls client.account() and returns the JSON-stringified result, or an error message on failure.
async () => { try { const result = await client.account(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: error.message }], isError: true }; } } - src/index.js:120-122 (helper)The client.account() method that makes the actual API request to the '/account' endpoint via the WebScrapingAIClient class.
async account() { return this.request('/account', {}); } - src/index.js:350-350 (schema)Empty schema object for the 'webscraping_ai_account' tool — no input parameters are expected.
{},