Tag search

This commit is contained in:
2026-07-26 13:13:38 -07:00
parent 62c06b6254
commit 79c975dd28
5 changed files with 110 additions and 0 deletions
+13
View File
@@ -25,6 +25,7 @@ from .get_text_context import handle as get_text_context_handler
from .wikipedia import handle as wikipedia_handler
from .get_model_info import handle as get_model_info_handler
from .generate_image import handle as generate_image_handler
from .search_tags import handle as search_tags_handler
# Central registry of all available tools
TOOL_REGISTRY = [
@@ -154,4 +155,16 @@ TOOL_REGISTRY = [
},
handler=generate_image_handler
),
Tool(
name="search_tags",
description="Searches the Danbooru tag database for tags matching a query. Returns the most popular tags including alias matches. Useful for finding the correct booru-style tags for anime models.",
schema={
"type": "object",
"properties": {
"query": {"type": "string", "description": "The tag or partial tag to search for (e.g., 'white hair' or 'lesbian')."}
},
"required": ["query"],
},
handler=search_tags_handler
),
]