ACL 2025finding0 citations

PLAY2PROMPT: Zero-shot Tool Instruction Optimization for LLM Agents via Tool Play

Wei Fang, Yang Zhang, Kaizhi Qian, James R. Glass, Yada Zhu

Abstract

Large language models (LLMs) are increasingly integrated with specialized external tools, yet many tasks demand zero-shot tool usage with minimal or noisy documentation. Existing solutions rely on manual rewriting or labeled data for validation, making them inapplicable in true zero-shot settings. To address these challenges, we propose PLAY2PROMPT, an automated framework that systematically “plays” with each tool to explore its input-output behaviors. Through this iterative trial-and-error process, PLAY2PROMPT refines tool documentation and generates usage examples without any labeled data. These examples not only guide LLM inference but also serve as validation to further enhance tool utilization. Extensive experiments on real-world tasks demonstrate that PLAY2PROMPT significantly improves zero-shot tool performance across both open and closed models, offering a scalable and effective solution for domain-specific tool integration.

BibTeX
@inproceedings{fang-etal-2025-play2prompt,
    title = "{PLAY}2{PROMPT}: Zero-shot Tool Instruction Optimization for {LLM} Agents via Tool Play",
    author = "Fang, Wei  and
      Zhang, Yang  and
      Qian, Kaizhi  and
      Glass, James R.  and
      Zhu, Yada",
    editor = "Che, Wanxiang  and
      Nabende, Joyce  and
      Shutova, Ekaterina  and
      Pilehvar, Mohammad Taher",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2025",
    month = jul,
    year = "2025",
    address = "Vienna, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.findings-acl.1347/",
    doi = "10.18653/v1/2025.findings-acl.1347",
    pages = "26274--26290",
    ISBN = "979-8-89176-256-5"
}
PLAY2PROMPT: Zero-shot Tool Instruction Optimization for LLM Agents via Tool Play · ACL 2025