Make host_id optional and improve tool parameter descriptions for LLMs#4585
Make host_id optional and improve tool parameter descriptions for LLMs#4585
Conversation
LLMs often pass host name instead of host ID, or omit host_id entirely. This change: - Makes host_id optional in all tools (fetch_container_logs, inspect, actions) since container IDs are unique across hosts - Adds findContainerFlexible helper that resolves host names to IDs and searches across all hosts when host_id is omitted - Improves parameter descriptions to clarify ID vs name distinction https://claude.ai/code/session_01EoVbj5ecZzsZfroGiNALp3
…ch all hosts If the direct host lookup fails (wrong host ID, host name used instead, etc.), simply fall back to searching across all hosts instead of trying to resolve host names to IDs. https://claude.ai/code/session_01EoVbj5ecZzsZfroGiNALp3
|
|
Review: Make host_id optional and improve tool parameter descriptions
Overall clean change with good tests. The redundant check is minor nit. |
LLMs often pass host name instead of host ID, or omit host_id entirely.
This change:
actions) since container IDs are unique across hosts
and searches across all hosts when host_id is omitted
https://claude.ai/code/session_01EoVbj5ecZzsZfroGiNALp3