pub fn poll_dynamic_tool_refresh(
service: Res<'_, ToolServiceRes>,
agents: Query<'_, '_, Entity, With<DynamicTools>>,
commands: Commands<'_, '_>,
)Expand description
Poll each dynamic_tools agent for a pending tool re-scan and, when the tool
service reports one, tag it ToolsNeedRefresh so refresh_advertised_tools
re-advertises before its next turn. Only agents carrying DynamicTools are
queried, so static agents (the default) cost nothing.