resolveToolIconUrl() currently only converts relative paths when they end in .svg and returns undefined for PNG/etc. However, the bundled registry examples still use icon: "icon.png" (e.g., src/main/data/registry.json), which means many tool icons will always fall back. Either broaden support to common image types (png/webp/jpg) via pptb-webview:// URLs, or ensure the registry/tool packaging guarantees SVG icons (and update docs/validator accordingly).
Originally posted by @Copilot in #448 (comment)
resolveToolIconUrl()currently only converts relative paths when they end in.svgand returnsundefinedfor PNG/etc. However, the bundled registry examples still useicon: "icon.png"(e.g.,src/main/data/registry.json), which means many tool icons will always fall back. Either broaden support to common image types (png/webp/jpg) viapptb-webview://URLs, or ensure the registry/tool packaging guarantees SVG icons (and update docs/validator accordingly).Originally posted by @Copilot in #448 (comment)