al4_whoami
Retrieves account details for the authenticated user on the AssemblyLine platform.
Instructions
Return details about the currently authenticated AssemblyLine user.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "al4_whoami"
}
}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;