ToolSpace: Scaling Tool-Centric Environment Synthesis for Long-Horizon Agents

Guanting Dong, Zhichao Sun, Xinyu Yang, Rui Wang, Xin Deng +20 more
11/3/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Large language models are deployed as long-horizon agents that compose diverse tools across MCP services into executable workflows. Existing MCP environment-scaling methods are data-centric: they first synthesize a database and scenario, then derive tools and tasks from them.

Show full abstract

As a result, tool interfaces may not match real ones, tool compositions are not grounded in execution, and tasks rarely span more than one environment. We propose ToolSpace, a tool-centric framework that reverses this order. ToolSpace mines data, state, and retry dependencies from adjacent calls in execution traces of real MCP services and open agent corpora, using deterministic rules rather than LLM judgment, and clusters the resulting weighted tool-composition graph into environments. Databases are synthesized only for state-mutating environments, while query and stateless tools replay recorded returns. ToolSpace then performs state-aware random walks with rollback and decompiles each chain into a natural-language task with assertion-based checks, keeping only samples that replay successfully from the initial state. Applied to AutomationBench and tau3-Bench Banking, the pipeline produces harder Pro versions on which 7 frontier models drop by up to 38.2 points. Across seven long-horizon tool-use benchmarks, ToolSpace raises Qwen3.6-35B-A3B from 23.0 to 41.0 average score (43.2 with RL) and GLM-5.2 from 44.6 to 56.6, on par with Claude Opus 5. Ablations show that execution-witnessed edges clearly outperform LLM-judged ones, and performance keeps improving with data and environment scale.

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{dong2026toolspace,
  title  = {ToolSpace: Scaling Tool-Centric Environment Synthesis for Long-Horizon Agents},
  author = {Guanting Dong and Zhichao Sun and Xinyu Yang and Rui Wang and Xin Deng and Jiajie Jin and Zhixiong Yang and Junhao Huang and Han Han and Mingyu Ma and Xiaotao Wang and Yuyang Hu and Xiaoshuai Song and Xiaoxi Li and Jiejun Tan and Zhecan Wang and Shihan Dou and Honglin Guo and Zhiheng Xi and Tao Gui and Tao Ji and Qi Zhang and Yutao Zhu and Ji-Rong Wen and Zhicheng Dou},
  year   = {2026},
  eprint = {2611.05036},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.05036v1}
}

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/2611.05036.svg)](https://codeofpaper.com/paper/2611.05036)

Discussion