list-bots
Retrieve paginated lists of bots, with options to filter fields and include deleted entities.
Instructions
List bots with pagination
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Comma-separated fields to include | |
| limit | No | Number of results per page | |
| before | No | Cursor for backward pagination | |
| after | No | Cursor for forward pagination | |
| include | No | Include deleted entities | non-deleted |
Implementation Reference
- src/tools/bots.ts:6-12 (schema)Zod schema for list-bots input: fields, limit (default 10), before/after cursors, include (default non-deleted).
export const listBotsSchema = z.object({ fields: z.string().optional().describe("Comma-separated fields to include"), limit: z.coerce.number().optional().default(10).describe("Number of results per page"), before: z.string().optional().describe("Cursor for backward pagination"), after: z.string().optional().describe("Cursor for forward pagination"), include: z.enum(["non-deleted", "deleted", "all"]).optional().default("non-deleted").describe("Include deleted entities"), }); - src/tools/bots.ts:14-16 (handler)Async handler that calls GET /bots with the input params via omClient.
export async function listBots(params: z.infer<typeof listBotsSchema>) { return omClient.get("/bots", params); } - src/index.ts:417-417 (registration)Tool registration: tool('list-bots', ...) using listBotsSchema.shape and wrapToolHandler(listBots).
tool("list-bots", "List bots with pagination", listBotsSchema.shape, wrapToolHandler(listBots)); - src/index.ts:125-125 (helper)Import of listBotsSchema and listBots from ./tools/bots.js.
import { listBotsSchema, listBots, getBotSchema, getBot, getBotByNameSchema, getBotByName } from "./tools/bots.js";