Add links-mode embed thumbnails, item metadata, and media filters
This commit is contained in:
@@ -829,12 +829,37 @@ 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"),
|
||||
aspect: z
|
||||
.enum(["vertical", "square", "wide43", "wide169", "ultrawide", "other"])
|
||||
.optional()
|
||||
.describe("Aspect-ratio bucket"),
|
||||
resolution: z
|
||||
.enum(["sd", "hd", "fhd", "qhd", "uhd", "unknown"])
|
||||
.optional()
|
||||
.describe("Resolution bucket by shortest side"),
|
||||
after: z.string().optional().describe("Only items posted at or after this ISO time"),
|
||||
before: z.string().optional().describe("Only items posted at or before this ISO time"),
|
||||
limit: z.number().int().min(1).max(500).optional(),
|
||||
offset: z.number().int().min(0).optional()
|
||||
}
|
||||
},
|
||||
async ({ kind, source, scrapeId, channelId, limit, offset }) =>
|
||||
jsonText(media.queryMedia({ kind, source, scrapeId, channelId, limit, offset }))
|
||||
async ({ kind, source, scrapeId, channelId, authorId, aspect, resolution, after, before, limit, offset }) =>
|
||||
jsonText(
|
||||
media.queryMedia({
|
||||
kind,
|
||||
source,
|
||||
scrapeId,
|
||||
channelId,
|
||||
authorId,
|
||||
aspect,
|
||||
resolution,
|
||||
after,
|
||||
before,
|
||||
limit,
|
||||
offset
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
server.registerTool(
|
||||
|
||||
Reference in New Issue
Block a user