MCPcopy
hub / github.com/claude-code-best/claude-code / getAllBaseTools

Function getAllBaseTools

src/tools.ts:218–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 * NOTE: This MUST stay in sync with https://console.statsig.com/4aF3Ewatb6xPVpCwxb5nA3/dynamic_configs/claude_code_global_system_caching, in order to cache the system prompt across users.
217 */
218export function getAllBaseTools(): Tools {
219 return [
220 AgentTool,
221 TaskOutputTool,
222 BashTool,
223 // Ant-native builds have bfs/ugrep embedded in the bun binary (same ARGV0
224 // trick as ripgrep). When available, find/grep in Claude's shell are aliased
225 // to these fast tools, so the dedicated Glob/Grep tools are unnecessary.
226 ...(hasEmbeddedSearchTools() ? [] : [GlobTool, GrepTool]),
227 ExitPlanModeV2Tool,
228 FileReadTool,
229 FileEditTool,
230 FileWriteTool,
231 NotebookEditTool,
232 ArtifactTool,
233 WebFetchTool,
234 TodoWriteTool,
235 WebSearchTool,
236 TaskStopTool,
237 AskUserQuestionTool,
238 SkillTool,
239 EnterPlanModeTool,
240 LocalMemoryRecallTool,
241 VaultHttpFetchTool,
242 ...(process.env.USER_TYPE === 'ant' ? [ConfigTool] : []),
243 ...(GoalTool ? [GoalTool] : []),
244 ...(process.env.USER_TYPE === 'ant' ? [TungstenTool] : []),
245 ...(SuggestBackgroundPRTool ? [SuggestBackgroundPRTool] : []),
246 ...(WebBrowserTool ? [WebBrowserTool] : []),
247 ...(isTodoV2Enabled()
248 ? [TaskCreateTool, TaskGetTool, TaskUpdateTool, TaskListTool]
249 : []),
250 ...(OverflowTestTool ? [OverflowTestTool] : []),
251 ...(CtxInspectTool ? [CtxInspectTool] : []),
252 ...(TerminalCaptureTool ? [TerminalCaptureTool] : []),
253 ...(isEnvTruthy(process.env.ENABLE_LSP_TOOL) ? [LSPTool] : []),
254 ...(isWorktreeModeEnabled() ? [EnterWorktreeTool, ExitWorktreeTool] : []),
255 getSendMessageTool(),
256 ...(ListPeersTool ? [ListPeersTool] : []),
257 getTeamCreateTool(),
258 getTeamDeleteTool(),
259 ...(VerifyPlanExecutionTool ? [VerifyPlanExecutionTool] : []),
260 ...(process.env.USER_TYPE === 'ant' && REPLTool ? [REPLTool] : []),
261 ...(WorkflowTool ? [WorkflowTool] : []),
262 ...(SleepTool ? [SleepTool] : []),
263 ...cronTools,
264 ...(RemoteTriggerTool ? [RemoteTriggerTool] : []),
265 ...(MonitorTool ? [MonitorTool] : []),
266 BriefTool,
267 ...(SendUserFileTool ? [SendUserFileTool] : []),
268 ...(PushNotificationTool ? [PushNotificationTool] : []),
269 ...(SubscribePRTool ? [SubscribePRTool] : []),
270 ...(ReviewArtifactTool ? [ReviewArtifactTool] : []),
271 ...(getPowerShellTool() ? [getPowerShellTool()] : []),
272 ...(SnipTool ? [SnipTool] : []),
273 ...(DiscoverSkillsTool ? [DiscoverSkillsTool] : []),
274 ...(process.env.NODE_ENV === 'test' ? [TestingPermissionTool] : []),
275 ListMcpResourcesTool,

Callers 6

tool-chain.test.tsFile · 0.90
getToolsForDefaultPresetFunction · 0.85
getToolsFunction · 0.85
SessionPreviewFunction · 0.85
runToolUseFunction · 0.85
useInboxPollerFunction · 0.85

Calls 9

hasEmbeddedSearchToolsFunction · 0.85
isTodoV2EnabledFunction · 0.85
isWorktreeModeEnabledFunction · 0.85
getSendMessageToolFunction · 0.85
getTeamCreateToolFunction · 0.85
getTeamDeleteToolFunction · 0.85
getPowerShellToolFunction · 0.85
isEnvTruthyFunction · 0.50

Tested by

no test coverage detected