Add the advanced search drawer, adaptive paging, and zoom

This commit is contained in:
Fisto
2026-09-17 07:57:26 +02:00
parent dea1724eb3
commit 5319a028e2
9 changed files with 492 additions and 159 deletions
+21 -3
View File
@@ -880,7 +880,9 @@ function buildServer(): McpServer {
.describe("Where the item came from"),
scrapeId: z.string().optional().describe("Restrict to one scrape"),
channelId: z.string().optional().describe("Restrict to one source channel"),
authorId: z.string().optional().describe("Restrict to one poster"),
authorIds: z.array(z.string()).optional().describe("Restrict to these posters"),
origin: z.enum(["dm", "guild"]).optional().describe("Server channels or DMs"),
cachedOnly: z.boolean().optional().describe("Only items with a cached preview"),
aspect: z
.enum(["vertical", "square", "wide43", "wide169", "ultrawide", "other"])
.optional()
@@ -895,14 +897,30 @@ function buildServer(): McpServer {
offset: z.number().int().min(0).optional()
}
},
async ({ kind, source, scrapeId, channelId, authorId, aspect, resolution, after, before, limit, offset }) =>
async ({
kind,
source,
scrapeId,
channelId,
authorIds,
origin,
cachedOnly,
aspect,
resolution,
after,
before,
limit,
offset
}) =>
jsonText(
media.queryMedia({
kind,
source,
scrapeId,
channelId,
authorId,
authorIds,
origin,
cachedOnly,
aspect,
resolution,
after,