import { defineAgentTool } from '@zhin.js/tool'; import { sixtySClientToken } from '../../../../src/client.js'; import { z } from 'zod'; export default defineAgentTool<{ limit?: number }>({ description: "获取知乎热榜", inputSchema: z.object({ limit: z.number().optional() }), keywords: ["知乎", "热榜", "zhihu", "zh"], tags: ["热搜", "社交", "知乎"], async execute(input, context) { const handler = (await import('../../../../src/handlers/zhihu-hot.js')).default; return handler(context.use(sixtySClientToken), input); }, });