Skip to main content
prompt GP ChatGPT

tool-use — Claude Code prompt: what it does, how to install

tool-use is a Claude Code prompt that tells the agent to look up unfamiliar information with tools. If a call fails, it reads the error and retries another way or reports the failure.

MIT ★ 172 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/tool-use.md
Open on GitHub

What tool-use does

tool-use directs the agent to consult tools when an answer depends on information it has not seen. After a tool call fails, the agent reads the error, then either makes a different call or tells the user what went wrong.

To install it in Claude Code, save the prompt as .claude/commands/tool-use.md. The prompt guides tool use; it does not provide the tools themselves.

What it helps with

  • look up information missing from the current context
  • respond to a failed tool call
  • report what went wrong with a tool

Example prompts for the agent

  • Look up the missing information with the available tools before answering.
  • Read the tool error, then retry with a different call or tell me what failed.

How to install tool-use

Manually: put the files in place

.claude/commands/tool-use.md

Questions about tool-use

How do I install tool-use in Claude Code?

Save the prompt text as .claude/commands/tool-use.md.

What does tool-use do?

It directs the agent to consult tools when an answer depends on unfamiliar information. If a call fails, the agent reads the error and tries another call or reports the failure.

How does tool-use handle tool errors?

The agent reads the error, then makes a different call or reports what failed.

Source text

tool-use.md · MIT
Use the tools to look things up before you answer when the answer depends on something you have not seen. When a tool returns an error, read it, then either try a different call or tell the person what failed.

© garrytan · MIT · garrytan/g-harness-evals

Similar prompts

Prompts catalog →
media-use heygen-com media-use is a Claude Code skill that finds and generates media for HyperFrames projects, saving files to assets. It handles HeyGen search, voice generation, background audio, and video grading. CX Codex +1 1,500,000installs flutter-use-http-package flutter The flutter-use-http-package skill shows how to send GET, POST, PUT, and DELETE requests with Flutter's http package and handle JSON responses. Use it when an app needs to read from or write to a REST API. CX Codex +1 39,100installs dart-use-pattern-matching dart-lang dart-use-pattern-matching is a Claude Code skill that applies Dart 3 pattern matching, switch expressions, and destructuring. It runs when refactoring nested if-else chains or parsing JSON schemas. CX Codex +1 20,800installs dart-use-primary-constructors flutter dart-use-primary-constructors guides AI assistants in writing and refactoring Dart primary constructors. Useful when upgrading Dart codebases to Dart 3.13+ syntax and cutting class boilerplate. CX Codex +1 17,000installs use-link-identity stripe use-link-identity is a Claude Code skill for retrieving Link attestations and presenting selected signed claims to a service. It activates when a service asks for an AAT or identity proof. CX Codex +1 15,700installs meticulous-use-session-data alwaysmeticulous meticulous-use-session-data — a skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode that downloads structured Meticulous session data — recorded user flows and network mocks. CX Codex +1 9,000installs

From the same set4

Project sponsors

Companies that keep this analytics open