mlsanityData to 7 Oct 2026

ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models

arXiv 2502.11404 ↗First posted 17 Feb 2025cs.CLcited by 8

On the map: LLM agents and tool use → Tool learning and function calling

Abstract (arXiv)

Tool learning has emerged as a crucial capability for large language models (LLMs) to solve complex real-world tasks through interaction with external tools. Existing approaches face significant challenges, including reliance on hand-crafted prompts, difficulty in multi-step planning, and lack of precise error diagnosis and reflection mechanisms. We propose ToolCoder, a novel framework that reformulates tool learning as a code generation task. Inspired by software engineering principles, ToolCoder transforms natural language queries into structured Python function scaffold and systematically breaks down tasks with descriptive comments, enabling LLMs to leverage coding paradigms for complex reasoning and planning. It then generates and executes function implementations to obtain final responses. Additionally, ToolCoder stores successfully executed functions in a repository to promote code reuse, while leveraging error traceback mechanisms for systematic debugging, optimizing both execution efficiency and robustness. Experiments demonstrate that ToolCoder achieves superior performance in task completion accuracy and execution reliability compared to existing approaches, establishing the effectiveness of code-centric approaches in tool learning.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 16 of its 27 references that are in the map. First posted on arXiv 17 Feb 2025.

Builds on

16 of 27 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024What Affects the Stability of Tool Learning? An Empirical Study on the Robustness of Tool Learning Frameworks3 Jul
  2. 2024Tool Learning with Large Language Models: A Survey28 May
  3. 2024Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents26 May
  4. 2024Learning to Use Tools via Cooperative and Interactive Agents5 Mar
  5. 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instruction11 Jan
  6. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedback19 Sep
  7. 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Cases8 Jun
  8. 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs14 Apr

Other references · 8

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  3. 2022Binding Language Models in Symbolic Languagescited by 224
  4. 2023Large Language Models are Versatile Decomposers: Decompose Evidence and Questions for Table-based Reasoningcited by 177
  5. 2024The Landscape of Emerging AI Agent Architectures for Reasoning, Planning, and Tool Calling: A Surveycited by 164
  6. 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
  7. 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
  8. 2024From Summary to Action: Enhancing Large Language Models for Complex Tasks with Open World APIscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 2.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Understanding Tool-Integrated Reasoning
  2. 2025ToolHop: A Query-Driven Benchmark for Evaluating Large Language Models in Multi-Hop Tool Use
  3. 2025Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklists
  4. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligence
  5. 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarios
  6. 2024LLM With Tools: A Survey
  7. 2026PruneTIR: Inference-Time Tool Call Pruning for Effective yet Efficient Tool-Integrated Reasoning
  8. 2024Language hooks: a modular framework for augmenting LLM reasoning that decouples tool usage from the model and its prompt