From a875088c33b3ee23f80ac4c8dc4aedf53ced4387 Mon Sep 17 00:00:00 2001 From: tak Date: Mon, 26 Oct 2026 22:33:31 +0900 Subject: [PATCH] docs(skill): send several screenshots in one hwip_file call Asked for several screenshots, an agent sent one hwip_file per picture and the phone got a bubble for each. The skill and CLAUDE.md now point at filePaths: one call, one message, five files to a push. --- CLAUDE.md | 5 +++-- skills/hwip/SKILL.md | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 15ec90f..6c0280e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,8 +31,9 @@ Ask the user with quick-reply buttons AND a text input field combined. Blocks un Copy text to the user's device clipboard. ### hwip_file -Send a file to the user's device — `filePath` for anything on disk (images, PDFs, -logs), or `content` + `fileName` for generated text. +Send files to the user's device — `filePath` for anything on disk (images, PDFs, +logs), `filePaths` for several at once (one call, one message — never a call per +screenshot), or `content` + `fileName` for generated text. ## Utility Tools diff --git a/skills/hwip/SKILL.md b/skills/hwip/SKILL.md index 518865d..fcb1de7 100644 --- a/skills/hwip/SKILL.md +++ b/skills/hwip/SKILL.md @@ -86,11 +86,15 @@ Copy text to the user's device clipboard. - User needs to paste something elsewhere ### hwip_file -Send a file to the user's device. Pass `filePath` for a file that already exists -on disk, or `content` + `fileName` for text you generated. +Send files to the user's device. Pass `filePath` for a file that already exists +on disk, `filePaths` for several of them, or `content` + `fileName` for text you +generated. **When to use:** - Send an image, screenshot, or PDF — `filePath`, and it renders inline on the device +- Send several screenshots or files the user asked for — **one call with + `filePaths`**, not one call per file: they arrive together in one message + (five to a push; more are split in order). Give one `title` for the set - Share logs, reports, or generated config files - Content too long for a notification body