> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ko/llms.txt # 마스트라.getTool() 그만큼`.getTool()`메서드는 등록 키를 사용하여 Mastra 수준 레지스트리에서 Tool을 검색합니다. ## 사용예 Tool을 `weather` 키로 등록한 다음, 해당 키를 사용하여 가져옵니다. ```typescript import { Mastra } from '@mastra/core/mastra' import { weatherTool } from './tools/weather-tool' export const mastra = new Mastra({ tools: { weather: weatherTool, }, }) const tool = mastra.getTool('weather') ``` ## 매개변수 **name** (`TToolName extends keyof TTools`): Mastra tools 레지스트리에 있는 Tool의 등록 키입니다. ## 관련된 - [Agent 간 Tool 공유](https://mastra.zisheng.pro/ko/docs/agents/using-tools) - [마스트라 수업](https://mastra.zisheng.pro/ko/reference/core/mastra-class) - [마스트라.getToolById()](https://mastra.zisheng.pro/ko/reference/core/getToolById) - [Mastra.listTools()](https://mastra.zisheng.pro/ko/reference/core/listTools)