Skip to content
Getting Started Simple

Disable Tools for Pure Text

Run Claude with zero tool access for text generation, classification, or summarization

Command

$ "color:#7C5CFC">claude -p "What is 2+2?" "color:#d97757">--output-format json "color:#d97757">--tools ""

Response

{
  "result": "4",
  "num_turns": 1,
  "total_cost_usd": 0.174,
  "permission_denials": []
}

Parsing Code

059669">">const data = JSON.parse(output);
059669">">// num_turns: 1 confirms no tool calls were made
console.log(data.result);

Gotchas

! No file access, no web, no shell — Claude answers from pure training knowledge
! Reduces cost by removing tool descriptions from the context window

Related Recipes