get_active_visitors
Retrieve real-time visitor counts for websites to monitor current traffic and engagement levels.
Instructions
Get the number of currently active visitors on a website
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID |
Implementation Reference
- src/tools/websites.ts:85-95 (handler)The registration and handler implementation for the `get_active_visitors` tool.
server.tool( "get_active_visitors", "Get the number of currently active visitors on a website", { websiteId: z.string().describe("Website UUID"), }, async ({ websiteId }) => { const data = await client.call("GET", `/api/websites/${websiteId}/active`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );