webscraping_ai_account
Retrieve your WebScraping.AI account information to check usage, plan, and API key details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:348-364 (registration)Tool 'webscraping_ai_account' is registered via server.tool() with an empty schema (no params) and a handler that calls client.account().
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:348-364 (handler)Handler function that calls await client.account() and returns the result as JSON text, or returns an error message on failure.
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:120-122 (helper)The account() method on WebScrapingAIClient makes a GET request to '/account' endpoint via the shared request() method.
async account() { return this.request('/account', {}); } - src/index.js:350-350 (schema)Empty schema object {} meaning the tool takes no input parameters.
{},