[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-686575-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-686575-en":130,"doc-similar-686575":154},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","restgpt-connecting-large-language-models-with-real-world-applications-via-restful-apis","RestGPT - Connecting Large Language Models with Real-World Applications via RESTful APIs","","Tool-augmented large language models can address a broad range of queries, yet existing API-augmented approaches remain experimental and struggle with extensibility, robustness, and real-world execution. RestGPT presents a practical framework that connects LLMs with RESTful APIs. It introduces coarse-to-fine online planning for task decomposition and API selection, plus a dedicated API executor for parameter formulation and response parsing. Experiments show strong robustness on complex tasks and a path toward more capable agents.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/restgpt-connecting-large-language-models-with-real-world-applications-via-restful-apis/686575/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/restgpt-connecting-large-language-models-with-real-world-applications-via-restful-apis/686575.png","ImageObject",300,407,{"name":42,"@type":43},"WPS_1790064749","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-30","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What scenario does RestGPT target for using large language models in real applications?","Question",{"text":63,"@type":64},"RestGPT targets connecting LLMs with RESTful APIs so the system can carry out real-world user requests through a standard web service interface.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does RestGPT handle planning and API selection in complex tasks?",{"text":68,"@type":64},"RestGPT uses a coarse-to-fine online planning mechanism that decomposes user instructions into subtasks, then maps them to REST API calls via an API selector.",{"name":70,"@type":61,"acceptedAnswer":71},"What role does the API executor play when calling RESTful APIs?",{"text":72,"@type":64},"The API executor formulates correct parameters and parses API responses, addressing difficulties caused by complex response formats such as JSON.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},686575,1794057005,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":26,"preview_urls":145},3985747859154,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","RestGPT: Connecting Large Language Models with Real-World Applications via RESTful APIs  \nYifan Song 1 , Weimin Xiong 1 , Dawei Zhu 1 , Cheng Li2 , Ke Wang2 , Ye Tian2 , Sujian Li 1 ∗  \n1 School of Computer Science, Peking University  \n2Huawei Technologies  \n{yfsong, [lisujian}@pku.edu.cn](lisujian}@pku.edu.cn)  \n[https://restgpt.github.io](https://restgpt.github.io)  \nAbstract  \nTool-augmented large language models (LLMs) have achieved remarkable progress in tackling a broad range of queries. However, existing work are still in the experimental stage and has limitations in extensibility and robustness, especially facing the real-world applications. In this paper, we consider a more realistic scenario, connecting LLMs with RESTful APIs, which use the commonly adopted REST software architectural style for web service development. To address the practical challenges of planning and API usage, we introduce RestGPT, which leverages LLMs to solve user requests by connecting with RESTful APIs. Specifically, we propose a coarse-to-fine online planning mechanism to enhance the ability of planning and API selection. For the complex scenario of calling RESTful APIs, we also specially designed an API executor to formulate parameters and parse API responses. Experiments show that RestGPT is able to achieve impressive results in complex tasks and has strong robustness, which paves a new way towards AGI.  \n1 Introduction  \nLarge language models (LLMs), such as GPT-3 [1], ChatGPT [2], and GPT-4 [3], have made significant progress on various natural language processing tasks over the past several years. LLMs have demonstrated emergent abilities, including in-context learning [1], mathematical reasoning [4, 5], and step-by-step planning [6, 7] . To extend the abilities of LLMs in real applications, an active research direction explores the use of external tools to augment LLMs [8, 9, 10] . Early studies equip LLMs with simple tools, such as searching engines and calculator, to access real-time information and enhance mathematical ability [11, 12, 10] . Recently, ViperGPT [13], Visual ChatGPT [14], and HuggingGPT [15] incorporate a collection of foundation models to make LLMs capable of processing multi-modal tasks. Chameleon [16] explores to synthesize a sequence of tools with LLM to tackle abroader range of queries.  \nDespite significant progresses, we can see current API-augmented LLMs are still in the experimental stage and far from tackling queries from the real-world scenarios [8] . As shown in Table 1, current methods can only connect with a small number of tools/APIs [12, 17, 13] . For example, Chameleon augments LLM with 15 different tools [16] . It is also noted that previous work heavily relies on specially designed APIs and meticulously crafted API descriptions, which in turn limits their extensibility [13, 18] . In such cases, the potential for LLMs to leverage a vast number of realistic APIs remains under-explored.  \nIn this paper, to apply LLMs in a more realistic scenario, we consider to connect them with APIs which follow the Representational State Transfer (REST) software architectural style. REST provides a simple and standard interface using [HTTP methods](HTTP methods) (e.g., GET, POST) and URIs to manipulate  \n* Corresponding author.  \nFigure 1: Comparison of RestGPT with previous work. (a) Offline-planning approaches, such as HuggingGPT [15], ViperGPT [13], Chameleon [16] . (b) ReAct [12], an online-planning approach.  \n(c) Our proposed RestGPT, a coarse-to-fine online planning framework.  \nresources, which has become the de facto standard for web service development [19] . RESTful APIs usually follow OpenAPI Specification (OAS) [20], which describes the operations, parameters, and response schemas of each API endpoint. With the help of OAS, the resulting framework is naturally compatible with existing systems, and the API development process is standardized, leading to more powerful extensibility than previous work. Howe","cbCaiaRdr5tKg5Cy","https://ap.wps.com/l/cbCaiaRdr5tKg5Cy","pdf",1120879,18,"English","# Introduction\n## Background: Tool-augmented LLMs and limitations\n## RESTful APIs and system challenges\n## Offline vs. online planning approaches\n# RestGPT framework","[{\"question\":\"What scenario does RestGPT target for using large language models in real applications?\",\"answer\":\"RestGPT targets connecting LLMs with RESTful APIs so the system can carry out real-world user requests through a standard web service interface.\"},{\"question\":\"How does RestGPT handle planning and API selection in complex tasks?\",\"answer\":\"RestGPT uses a coarse-to-fine online planning mechanism that decomposes user instructions into subtasks, then maps them to REST API calls via an API selector.\"},{\"question\":\"What role does the API executor play when calling RESTful APIs?\",\"answer\":\"The API executor formulates correct parameters and parses API responses, addressing difficulties caused by complex response formats such as JSON.\"}]","RestGPT - Connecting Large Language Models with Real-World Applications via RESTful APIs | PDF",45,[146,150],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d5b5d73ee5980ffa3956a12fcd3977d4.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/013f1564a7aa9f09f169f6899028452e.webp",982,1270,{"list":155,"token":11},[156,162,168,174,181,188,195,201,207,213],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":55,"category_name":29,"create_tm":161},686572,"RestGPT: Connecting Large Language Models with Real-World RESTful APIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001037211/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=uXoFbqgUyma1xpeXZG3RpTrPjAE%3D","restgpt-connecting-large-language-models-with-real-world-restful-apis",1794057002,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":30,"category_name":29,"create_tm":167},686580,"Live API-Bench - 2500+ Live APIs for Testing Multi-Step Tool Calling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000538437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=ljUBnWFuvENy9pV%2FGMU6yFNWIkA%3D","live-api-bench-2500-live-apis-for-testing-multi-step-tool-calling",1794057054,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":55,"category_name":29,"create_tm":173},686573,"Live API Bench - Benchmarks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001037229/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=Z%2FX5eZOTBnoXmujCADQvxBuyYHM%3D","live-api-bench-benchmarks",1794057004,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":29,"create_tm":180},155412,"MARVIN - A ToolKit for Streamlined Access and Visualization of the SDSS-IV MaNGA Data Set","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869944483/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=OZs4DGgv9%2FseEVD2tgCJ%2FO%2F3G7M%3D","marvin-a-toolkit-for-streamlined-access-and-visualization-of-the-sdss-iv-manga-data-set",12,1787911620,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":29,"create_tm":187},83866,"DSWAM: A Dual-System World Action Foundation Model for Fine-Grained Robot Manipulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809004229/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=iG8ARuI5XBlJ6pEXbJldOPdMurQ%3D","dswam-a-dual-system-world-action-foundation-model-for-fine-grained-robot-manipulation",36,1784191077,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":29,"create_tm":194},327280,"Black-Box Inference of LLM Architectural Properties with Restrictive API Access - Preprint","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909315909/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=ztbV2NdLPaeGOmoSiLro4RKfx%2FQ%3D","black-box-inference-of-llm-architectural-properties-with-restrictive-api-access-preprint",11,1789976893,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":112,"category_name":29,"create_tm":200},82457,"Evaluating and Mitigating Errors in LLM-Generated Web API Integrations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808745155/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=nuknrfDz2aUR%2BLzdcNcCtLbvIpc%3D","evaluating-and-mitigating-errors-in-llm-generated-web-api-integrations",1784180558,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":179,"category_name":29,"create_tm":206},273450,"Skill2Query - Exploiting Skill Structure to Generate Pseudo-Queries for Agent Skill Retrieval","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899548353/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=6ZFeRV9evVgcSmOeEJdcZqfOxiQ%3D","skill2query-exploiting-skill-structure-to-generate-pseudo-queries-for-agent-skill-retrieval",1789471487,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":30,"category_name":29,"create_tm":212},682273,"RESTful API Design for Geospatial Logistics Platforms Using TypeScript and Laravel","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999450331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=1mBizm%2Fv6z1StLKsui7QfoNltfk%3D","restful-api-design-for-geospatial-logistics-platforms-using-typescript-and-laravel",1793964650,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":29,"create_tm":219},83192,"A Coarse Block-Cut Tree Theorem","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808946442/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=chEU7tKKVi1Vpt0bU%2B8ZgJEdPc4%3D","a-coarse-block-cut-tree-theorem",24,1784185862]