discourse/plugins/discourse-ai/lib/ai_tool_scripts/presets
Sam 4f2d047ec5
FEATURE: improve image tool presets and tool editor (#38166)
- Add `image_urls` array parameter to all image generation
  presets (OpenAI, Gemini, Flux Together, Flux 2 BFL) to
  support image editing mode
- Return `{ url: short_url }` instead of generic success
  messages from image generation scripts so the LLM can
  reference the generated image
- Add `item_type` support for array parameters in the tool
  editor UI (string, number, boolean) and ensure the JSON
  schema always includes `items` for array types, defaulting
  to string
- Sort tools alphabetically in the admin tools list and
  personas meta endpoint
- Replace empty-state CTA with a DMenu preset dropdown
  matching the non-empty state behavior
- Fix stale locale key references for parameter_required
  and parameter_enum


This enables... this: 

<img width="1651" height="1918" alt="image"
src="https://github.com/user-attachments/assets/31f85941-3e5f-44c5-b589-07d3e9957220"
/>
2026-03-04 07:21:31 +11:00
..
image_generation FEATURE: improve image tool presets and tool editor (#38166) 2026-03-04 07:21:31 +11:00
browse_web_jina.js
empty_tool.js DEV: no-undef not needed here (#36263) 2025-11-26 10:34:03 -08:00
exchange_rate.js
stock_quote.js FEATURE: add credential bindings for AI tools (#37891) 2026-02-20 07:56:15 +11:00