list_qr_codes
Browse and search existing QR codes with pagination to view short IDs, target URLs, labels, and timestamps.
Instructions
List all managed QR codes with pagination. Returns short IDs, target URLs, labels, and timestamps. Use this to browse or search for existing QR codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return. | |
| offset | No | Number of results to skip. |
Implementation Reference
- packages/mcp/src/tools.ts:170-180 (handler)The tool 'list_qr_codes' is defined here as part of the MCP tools configuration. The handler calls the underlying '/api/qr' endpoint with limit and offset parameters.
list_qr_codes: { description: "List all managed QR codes with pagination. Returns short IDs, target URLs, labels, and timestamps. Use this to browse or search for existing QR codes.", inputSchema: z.object({ limit: z.number().min(1).max(100).default(20).describe("Max results to return."), offset: z.number().min(0).default(0).describe("Number of results to skip."), }), handler: async (input: { limit: number; offset: number }) => { return apiRequest("/api/qr", { query: { limit: input.limit, offset: input.offset } }); }, },