spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / tool-described.ts
14 lines · 424 BRaw
1import type { Origin, ToolDescribeInput } from 'claude-code'
2
3/**
4 * A tool's description as the engine asks for it, `d`, pinned to who
5 * provides the tool.
6 *
7 * @param tool the tool's name
8 * @param provider who provides it, as the engine pinned it
9 * @returns the `tool.describe` input
10 */
11export const toolDescribed = (
12 tool: string,
13 provider: Origin,
14): ToolDescribeInput => ({ tool, description: 'd', provider })