ToolGym: an Open-world Tool-using Environment for Scalable Agent Testing and Data Curation

Ziqiao Xi, Shuang Liang, Qi Liu, Jiaqing Zhang, Letian Peng +7 more
1/9/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Tool-using LLM agents still struggle in open-world settings with large tool pools, long-horizon objectives, wild constraints, and unreliable tool states. For scalable and realistic training and testing, we introduce an open-world tool-using environment, built on 5,571 format unified tools across 204 commonly used apps. It includes a task creation engine that synthesizes long-horizon, multi-tool workflows with wild constraints, and a state controller that injects interruptions and failures to stress-test robustness. On top of this environment, we develop a tool select-then-execute agent framework with a planner-actor decomposition to separate deliberate reasoning and self-correction from step-wise execution. Comprehensive evaluation of state-of-the-art LLMs reveals the misalignment between tool planning and execution abilities, the constraint following weakness of existing LLMs, and DeepSeek-v3.2's strongest robustness. Finally, we collect 1,170 trajectories from our environment to fine-tune LLMs, achieving superior performance to baselines using 119k samples, indicating the environment's value as both a realistic benchmark and a data engine for tool-using agents. Our code and data will be publicly released.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xi2026toolgym,
  title  = {ToolGym: an Open-world Tool-using Environment for Scalable Agent Testing and Data Curation},
  author = {Ziqiao Xi and Shuang Liang and Qi Liu and Jiaqing Zhang and Letian Peng and Fang Nan and Meshal Nayim and Tianhui Zhang and Rishika Mundada and Lianhui Qin and Biwei Huang and Kun Zhou},
  year   = {2026},
  eprint = {2601.06328},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.06328v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.06328.svg)](https://codeofpaper.com/paper/2601.06328)

Discussion