Skip to content

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.

TypeScript
424 B
Raw Blame
import type { Origin, ToolDescribeInput } from 'claude-code'

/**
 * A tool's description as the engine asks for it, `d`, pinned to who
 * provides the tool.
 *
 * @param tool the tool's name
 * @param provider who provides it, as the engine pinned it
 * @returns the `tool.describe` input
 */
export const toolDescribed = (
  tool: string,
  provider: Origin,
): ToolDescribeInput => ({ tool, description: 'd', provider })