Doc2Agent: Scalable Generation of Tool-Using Agents from API Documentation
Xinyi Ni, Haonan Jian, Qiuyang Wang, Vedanshi Chetan Shah, Pengyu Hong

TL;DR
Doc2Agent is a scalable pipeline that automatically generates and refines executable tools from unstructured API documentation, enabling web agents to effectively utilize complex real-world APIs with improved performance and lower costs.
Contribution
The paper introduces Doc2Agent, a novel scalable pipeline for converting unstructured API documentation into executable tools for tool-using agents, with iterative refinement and broad applicability.
Findings
Achieved 55% performance improvement on WebArena benchmark.
Reduced API calling costs by 90%.
Demonstrated adaptability to complex, knowledge-rich domains.
Abstract
REST APIs play important roles in enriching the action space of web agents, yet most API-based agents rely on curated and uniform toolsets that do not reflect the complexity of real-world APIs. Building tool-using agents for arbitrary domains remains a major challenge, as it requires reading unstructured API documentation, testing APIs and inferring correct parameters. We propose Doc2Agent, a scalable pipeline to build agents that can call Python-based tools generated from API documentation. Doc2Agent generates executable tools from API documentations and iteratively refines them using a code agent. We evaluate our approach on real-world APIs, WebArena APIs, and research APIs, producing validated tools. We achieved a 55\% relative performance improvement with 90\% lower cost compared to direct API calling on WebArena benchmark. A domain-specific agent built for glycomaterial science…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMulti-Agent Systems and Negotiation · Business Process Modeling and Analysis · Service-Oriented Architecture and Web Services
