get_account_info
Extract account details by parsing Next.js flight data from rendered pages to access user information in the school portal.
Instructions
Extract account information by parsing Next.js flight data from a rendered page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:565-586 (handler)MCP tool handler for get_account_info: fetches account info via API and returns JSON response or error message.case "get_account_info": try { const accountInfo = await this.api.getAccountInfoFromScript(); return { content: [ { type: "text", text: JSON.stringify(accountInfo, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : "Unknown error"}\n\nEnsure valid authentication cookies are set with the set_cookies tool.`, }, ], }; }
- src/server.ts:204-212 (registration)Registration of the get_account_info tool in ListToolsRequestHandler, defining name, description, and empty input schema.{ name: "get_account_info", description: "Extract account information by parsing Next.js flight data from a rendered page", inputSchema: { type: "object", properties: {}, }, },
- src/server.ts:208-211 (schema)Input schema for get_account_info tool: empty object (no parameters required).inputSchema: { type: "object", properties: {}, },