al4_whoami
Retrieves account details for the authenticated user on the AssemblyLine platform.
Instructions
Return details about the currently authenticated AssemblyLine user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/al4-client.ts:411-413 (handler)The actual handler method `whoami()` on the AL4Client class that performs the API call to GET /api/v4/user/whoami/ and returns user data.
whoami(opts?: RequestOptions): Promise<Record<string, unknown>> { return this.requestJson("GET", "/api/v4/user/whoami/", undefined, opts); } - src/index.ts:25-30 (schema)Tool registration schema for al4_whoami: defines name, description, and empty inputSchema (no parameters required).
const TOOLS = [ { name: "al4_whoami", description: "Return details about the currently authenticated AssemblyLine user.", inputSchema: { type: "object", properties: {}, required: [] }, }, - src/index.ts:381-383 (registration)The switch-case handler in the CallToolRequestSchema that dispatches 'al4_whoami' to client.whoami().
case "al4_whoami": result = await client.whoami(); break;