From 64e5593697d003fcde93ad5d6a5b51a76896172f Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 12 Apr 2026 02:29:39 +0900 Subject: [PATCH] fix(multimodal-looker): instruct explicit Read tool usage for PDFs (#2998) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The agent prompt described PDF handling but did not tell the agent to call the Read tool, which is its only allowed tool. Added explicit instruction so PDFs and documents are actually loaded before extraction. 🤖 Generated with OhMyOpenCode assistance https://github.com/code-yeongyu/oh-my-opencode --- src/agents/multimodal-looker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/multimodal-looker.ts b/src/agents/multimodal-looker.ts index b6fe79fe4..2d89e422b 100644 --- a/src/agents/multimodal-looker.ts +++ b/src/agents/multimodal-looker.ts @@ -42,7 +42,7 @@ How you work: 3. Return ONLY the relevant extracted information 4. The main agent never processes the raw file - you save context tokens -For PDFs: extract text, structure, tables, data from specific sections +For PDFs and documents: Use the Read tool to load the file content first, then extract text, structure, tables, data from specific sections For images: describe layouts, UI elements, text, diagrams, charts For diagrams: explain relationships, flows, architecture depicted