From 5591c84e7f4d77529e570e1edb1972bc7945e56a Mon Sep 17 00:00:00 2001 From: draix Date: Tue, 21 Apr 2026 09:18:25 -0300 Subject: [PATCH] fix: remove limit/offset from required in list_knowledge_chunks JSON Schema limit and offset are optional parameters with default values (limit=20, offset=0). Marking them as required in the JSON Schema forces LLM clients to always supply them, breaking calls that rely on the defaults. Fixes #1003 --- internal/agent/tools/list_knowledge_chunks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agent/tools/list_knowledge_chunks.go b/internal/agent/tools/list_knowledge_chunks.go index 13633ea2..6c6e9ded 100644 --- a/internal/agent/tools/list_knowledge_chunks.go +++ b/internal/agent/tools/list_knowledge_chunks.go @@ -52,7 +52,7 @@ Full chunk content with chunk_id, chunk_index, and content text.`, "minimum": 0 } }, - "required": ["knowledge_id", "limit", "offset"] + "required": ["knowledge_id"] }`), }