Skip to main content
Glama
search.d.ts1.38 kB
/** * 搜索相关工具处理器 */ import { BaseToolHandler } from './base.js'; import type { ExecutionContext, JSONSchema } from '../core/types.js'; import type { Block } from '../../dist/index.js'; /** * 按文件名搜索 */ export declare class SearchByFilenameHandler extends BaseToolHandler<{ filename: string; limit?: number; notebook?: string; }, Block[]> { readonly name = "search_by_filename"; readonly description = "Search documents by filename in SiYuan Note"; readonly inputSchema: JSONSchema; execute(args: any, context: ExecutionContext): Promise<Block[]>; } /** * 按内容搜索 */ export declare class SearchByContentHandler extends BaseToolHandler<{ content: string; limit?: number; notebook?: string; }, Block[]> { readonly name = "search_by_content"; readonly description = "Search blocks by content in SiYuan Note"; readonly inputSchema: JSONSchema; execute(args: any, context: ExecutionContext): Promise<Block[]>; } /** * SQL 查询 */ export declare class SqlQueryHandler extends BaseToolHandler<{ sql: string; }, Block[]> { readonly name = "sql_query"; readonly description = "Execute custom SQL query on SiYuan database (advanced)"; readonly inputSchema: JSONSchema; execute(args: any, context: ExecutionContext): Promise<Block[]>; } //# sourceMappingURL=search.d.ts.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/porkll/siyuan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server