> Discover all available pages from the documentation index: https://mastra.zisheng.pro/llms.txt # Tools API Tools API 提供用于与 Mastra 平台中可用的 Tool 交互并执行它们的方法。 ## 获取所有 Tool 检索所有可用 Tool 的列表: ```typescript const tools = await mastraClient.listTools() ``` ## 使用特定 Tool 获取特定 Tool 的实例: ```typescript const tool = mastraClient.getTool('tool-id') ``` ## Tool 方法 ### 获取 Tool 详情 检索 Tool 的详细信息: ```typescript const details = await tool.details() ``` ### 执行 Tool 使用指定参数执行 Tool: ```typescript const result = await tool.execute({ args: { param1: 'value1', param2: 'value2', }, threadId: 'thread-1', // Optional: Thread context resourceId: 'resource-1', // Optional: Resource identifier }) ```