cs.AIOct 18, 2026

Learning Which Device to Call: Online Tool Grounding for LLM Agents in IoT

Authors: Yichen Liu, Xiaochong Jiang, Haoran Yu, Lifei Liu

Organizations: Independent Researcher, Seattle, WA, USA · Independent Researcher, Boston, MA, USA

Abstract

The Internet of Things (IoT) gives large language model (LLM) agents access to physical observations, but one requested capability is usually offered by several devices, and the agent's plan does not say which one to call. Existing work retrieves relevant tools and checks plan feasibility, without learning which eligible device returns a useful observation. Unlike previous works, we study online tool grounding: binding an already specified tool call to one physical endpoint under service cost and device participation constraints. We propose a framework that learns which physical device should execute each agent-issued call. It formulates selection as a contextual bandit problem and combines adaptive context partitions with hierarchical endpoint trees, so that execution feedback is reused across related requests and devices. Selection balances task success against service cost while respecting device capability, authorization, battery reserves, and availability. Gaussian reward aggregation provides an optional mechanism for protecting individual feedback values. Theoretical results establish a finite-horizon regret bound and differential privacy for released reward statistics under fixed, reward-independent assignments. In a simulated loading-dock workload, the proposed router achieves higher step success and better cost-adjusted service, at lower simulated device energy and latency, than nearest-device, advertised-quality, UCB1, and LinUCB selection.

Figures & tables

Explore similar work

CardsList
  1. Utility-Guided Agent Orchestration for Efficient LLM Tool Use

    Mar 20, 2026Boyan Liu, Gongming Zhao, Hongli XuLLM Agent OrchestrationLLM Tool Use

  2. Scores Are Not Decisions: Cost-Aware Stopping for Tool Acquisition in LLM Agents

    Jul 29, 2026Yicheng Feng, Yan Zhang, Yan Cheng +1Decision-Focused LearningTool-Using Agents

  3. Hera: Learning Long-Horizon Coordination for Device-Cloud Collaborative LLM Agents

    May 23, 2026Yuxin Zhang, Mengxue Hu, Zheng Lin +8LLM Agent TrainingLLM Routing