Add the advanced search drawer, adaptive paging, and zoom
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user