Skip to content

Tool Calling is Linearly Readable and Steerable in Language Models

May 2026 · arXiv.org · Vol abs/2605.07990 · 11 citations · ⚡ 2 influential · 37 references
Computer Science

TL;DR

The model's hidden state provides a way to read, steer, and check tool choice before a call is made, suggesting that the model's hidden state provides a way to read, steer, and check tool choice before a call is made.

Abstract

Language-model agents can take real actions by calling tools, so choosing the wrong tool can cause errors that are difficult to undo. Most evaluations only observe the tool choice after the model generates a call. We read this choice from the model before generation, and we steer it. For each tool, we average the model's hidden states from a few example requests to obtain a tool vector. Comparing a new request with these tool vectors predicts which tool it needs. The difference between two tool vectors gives a steering direction that can move the model toward a chosen tool without retraining. Across eight instruction-tuned models from 4B to 27B parameters, steering changes the generated call to a chosen target tool in 56-78% of held-out tool pairs, depending on the model. We also observe steering on real APIs from $\tau$-bench and ToolBench, though less reliably. At the final layer, steering could work simply by raising the score of the target tool name. To test this, we compare the steering direction with a direction that only raises that score, layer by layer. In the middle layers, on the three models we examine in depth, the steering direction switches more calls than the score-raising direction. So the tool vectors capture part of the tool choice before the final layer. The same tool vectors also help identify likely tool-selection errors before generation. Calls are more likely to be wrong when a request is similarly close to two tool vectors. Across four models, this signal achieves an AUROC of 0.61-0.78 and outperforms a first-token confidence baseline on three of them. Together, these results suggest that the model's hidden state provides a way to read, steer, and check tool choice before a call is made.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

How Do Agentic LLMs Decide to Call Tools? A Tool-Call Vector Shaped by Suppression

This work proposes a method that converts complex agentic prompts into minimal contrastive pairs in which a single request verb determines the tool-call decision, and traces the decision to a vector, $\mu_\Delta$, that is both causally necessary and sufficient and generalizes beyond the discovery prompts to native mult...

X. Gong, Ting-Xu Han, Jia-Hao Zhang et al. · 0 citations
Preprint Oct 2026

ToolRosetta: Surface-Form Invariance of Tool-Call Guards

Step-level guards for tool-using agents are evaluated on tidy JSON tool calls, but deployed coding agents act through execute_bash and execute_code tools whose payloads are strings. We introduce ToolRosetta, which re-renders every candidate action in the AgentDojo and AgentHarm splits of TS-Bench as a Python call, as a...

Hasan Demirkiran, Jens Ernstberger · 0 citations
#artificial intelligence Open access Sep 2026

Measuring the Serving Stack Instead of the Model: Hidden Confounds in Local Tool-Use Evaluation

It is shown that measured outcomes can depend on the serving layer rather than model behavior alone rather than model behavior alone, and a checklist for treating serving behavior as part of the evaluation protocol is concluded.

Li-Juan Tang, Yue-Meng Zheng · 0 citations
Sep 2026

Control-Token Injection Suppresses Chain-of-Thought and Defeats Reasoning-Based Oversight in Tool-Using Agents

The safety of a tool-using language model agent is usually treated as a property of the model alone. We give controlled, full-precision evidence that it is instead a joint property of the model and the software that renders its chat template and parses its tool calls, the decoding harness, and that both halves are atta...

Muhammad Usama, Khairatul Nisa, Summer Yeoreum Jung · 0 citations
Preprint Oct 2026

Small agents should know what their tools do

Small open language models can call tools, but they do not reason about what a call does: they delete without asking, repeat writes, re-read state they already hold, and issue one call per turn where a short program would do. We introduce EffectWorld, an executable world of effect-typed tools in which every tool declar...

Alexander Kovalenko, Artem Redchych · 1 citation
#natural language process... Preprint Oct 2026

Before Retrieval Begins: Safety and Tool-Use Decisions in LLM Agents

Large language models increasingly act as agents that call external tools, yet most tool-safety research examines only what follows a tool call. The prior decision of whether to call the tool remains largely unexamined and can influence downstream safety. Across the seven open-weight models, the unweighted model-averag...

Aditya Nawal, Manit Baser, M. Gurusamy · 0 citations

Related blog posts

MIT News · Artificial Intelligence Nov 17, 2026

Learning the language of machine learning

By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.