search_tools
Find appropriate editing tools for Markdown operations by describing your task, enabling structured document manipulation through hierarchical paths.
Instructions
Scalability feature: find the right tool for your complex task among all available tools.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Description of the operation you want to perform |
Implementation Reference
- src/markdown_editor/server.py:513-521 (handler)Handler implementation for the 'search_tools' tool. It extracts the query, fetches all tools via list_tools(), matches tools by name or description containing the query, and returns relevant tool names.if name == "search_tools": query = arguments.get("query", "").lower() all_tools = await list_tools() relevant = [t.name for t in all_tools if query in t.name or (t.description and query in t.description.lower())] return { "content": [TextContent(type="text", text=f"Relevant tools: {', '.join(relevant)}")], "structuredContent": {"tools": relevant}, "isError": False }
- src/markdown_editor/server.py:47-79 (registration)Registration of the 'search_tools' tool in the list_tools() function, including input and output schemas.Tool( name="search_tools", title="Search Tools", description="Scalability feature: find the right tool for your complex task among all available tools.", inputSchema={ "type": "object", "properties": { "query": { "type": "string", "description": "Description of the operation you want to perform", "examples": [ "find paragraphs", "replace text", "move section", "delete element", "list files" ] } }, "required": ["query"], "additionalProperties": False }, outputSchema={ "type": "object", "properties": { "tools": { "type": "array", "description": "List of relevant tool names", "items": {"type": "string"} } } } ),