From a8188b92fb82c5f2e85f3c23157ac3d42e6d36ad Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 12 Dec 2025 21:28:34 +0000 Subject: [PATCH] fix: correct AI tool description for guest resource ID format The set_resource_url tool had an incorrect example ID format ('pve1-delly-101') which caused the AI to save URLs with wrong IDs that didn't match the actual guest IDs used by Pulse ('instance-VMID' format like 'delly-150'). This fix updates the tool description to clearly document the correct format, so URLs saved by the AI will now properly appear in the dashboard. --- internal/ai/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ai/service.go b/internal/ai/service.go index fed10a8..f715526 100644 --- a/internal/ai/service.go +++ b/internal/ai/service.go @@ -1628,7 +1628,7 @@ func (s *Service) getTools() []providers.Tool { }, "resource_id": map[string]interface{}{ "type": "string", - "description": "The resource ID from the context (e.g., 'pve1-delly-101' for guests, 'dockerhost:container:abc123' for Docker). Use the ID from the current context.", + "description": "The resource ID from the context. For Proxmox guests, use format 'instance-VMID' (e.g., 'delly-150' where 'delly' is the PVE instance name and '150' is the VMID). For Docker, use format 'hostid:container:containerid'. Use the ID shown in the current context.", }, "url": map[string]interface{}{ "type": "string",