From cdff846b2a37d1ab3d0d161dca905c5c5c8ff1b7 Mon Sep 17 00:00:00 2001 From: Sooty <7614538+SootyOwl@users.noreply.github.com> Date: Wed, 15 Oct 2025 16:38:04 +0100 Subject: [PATCH] feat(toolList): add enums for message filter options - Added enum values for 'has', 'authorType', 'sortBy', and 'sortOrder' --- src/toolList.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/toolList.ts b/src/toolList.ts index 1f2c471..d9dd333 100644 --- a/src/toolList.ts +++ b/src/toolList.ts @@ -82,7 +82,7 @@ export const toolList = [ forumChannelId: { type: "string" }, title: { type: "string" }, content: { type: "string" }, - tags: { + tags: { type: "array", items: { type: "string" } } @@ -312,14 +312,14 @@ export const toolList = [ content: { type: "string", description: "Search for messages containing specific text" }, authorId: { type: "string", description: "Filter messages by a specific user ID" }, mentions: { type: "string", description: "Filter messages that mention a specific user ID" }, - has: { type: "string", description: "Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot)" }, + has: { type: "string", description: "Filter messages that contain specific content types (e.g., link, embed, file, poll, image, video, sound, sticker, snapshot)", enum: ["link", "embed", "file", "poll", "image", "video", "sound", "sticker", "snapshot"] }, maxId: { type: "string", description: "Filter messages with IDs less than this value (messages before this ID)" }, minId: { type: "string", description: "Filter messages with IDs greater than this value (messages after this ID)" }, channelId: { type: "string", description: "Filter messages within a specific channel ID" }, pinned: { type: "boolean", description: "Filter messages based on whether they are pinned" }, - authorType: { type: "string", description: "Filter messages by author type (user, bot, webhook)" }, - sortBy: { type: "string", description: "Sort results by 'timestamp' or 'relevance'" }, - sortOrder: { type: "string", description: "Sort order: 'desc' for descending or 'asc' for ascending" }, + authorType: { type: "string", description: "Filter messages by author type (user, bot, webhook)", enum: ["user", "bot", "webhook"] }, + sortBy: { type: "string", description: "Sort results by 'timestamp' or 'relevance'", enum: ["timestamp", "relevance"] }, + sortOrder: { type: "string", description: "Sort order: 'desc' for descending or 'asc' for ascending", enum: ["desc", "asc"] }, limit: { type: "number", description: "Maximum number of messages to return (default 25, max 100)" }, offset: { type: "number", description: "Number of messages to skip (for pagination)" } },