Overview
Tool Name
Purpose
The image_tools group provides AI vision and image generation capabilities. You can ask natural language questions about images, create new images from prompts, and locate or retrieve image files that live in your workspace.Key Features & Functions
Visual Analysis
Ask questions about charts, documents, UI screenshots, and scenes to extract text, structure, and context.
Text-to-Image
Generate illustrations, diagrams, and mockups from concise prompts with optional constraints.
File Management
Find and fetch images by name or path for reuse in workflows.
Batch Friendly
Process multiple images in sequence for consistent analysis at scale.
Input Parameters for Each Function
image_analysis
Parameters
Image reads require view access to the named repository. In the shared
apps
repository, repository access alone is not enough: the caller must also be able
to view the specific GenesisApp containing the image. An inaccessible repository
or app is refused rather than read; the same checks apply when image search finds
a file under another allowed storage root.
Use show=true when the agent needs to look at a stored image again. It does not make a vision request, and it cannot show an image outside this conversation’s own uploads folder or a copy fetched from another repository. If the image cannot be shown, ask a question about it with query instead.
image_generation
Parameters
Use
reference_images when the prompt should change an existing image while keeping the rest consistent. The response includes edited_from for an edit. Editing requires a model with an image-edit endpoint; GPT-Image models and Genesis AI support it, while Bedrock image models and DALL-E 3 do not. An unsupported edit returns an error and does not fall back to generating a new image.
transparent_background only if it was
requested: true means the image has transparency, while false includes
transparent_background_note explaining that the selected model cannot provide it.
When the selected model can edit and the saved file has a supported image extension, the
response’s reminder also gives the path to pass as reference_images and, for a non-uploads
repository, the reference_repo_id to pass when requesting a later edit.
See Cost accounting for image-request metering.
On a Databricks App with durable chat uploads enabled, an image generated for a
conversation is kept across restarts when it is saved in that conversation’s
uploads/ folder. If it cannot be kept, the result includes
durability_warning when the volume cannot store it or the conversation refuses
its attachment; the image remains on the current server only.
find_image_path_in_download_folder
Parameters
In the shared
uploads repository, a bare file name is searched only in the
current conversation’s folder; without a thread id, Genesis does not search the
other conversation folders. A same-named file in the current thread is preferred.
An explicit path into another thread’s folder is returned only when the caller
has access to that conversation.
Use Cases
- Chart understanding Extract totals, trends, or anomalies from screenshots of dashboards.
- Document capture Read invoices, forms, screenshots, and other image-based documents to pull text and key fields.
- Asset creation Generate icons, diagrams, or hero images for reports and presentations.
- Product review Identify defects or features across batches of product photos.
- UX analysis Describe layout, hierarchy, and accessibility concerns in UI screenshots.
Workflow/How It Works
- Provide an image or prompt
For analysis, supply
file_name, optionallyrepo_id, and a clear question. For generation, write a concise prompt with style or size hints. - Run the function The tool routes to a vision or image model, processes your request, and returns structured text or a new image artifact.
- Store and reuse Register generated images with your file manager and attach them to tasks or projects. Resolve stored image paths later by name when another workflow needs them.
Use
file_name plus optional repo_id; Genesis resolves the stored image
path for you. When repo_id points to a managed remote repo, Genesis uses
the active WIP worktree when available; otherwise it reads the current remote
file contents instead of a shared local clone. For PDFs, use the
git_action OCR or visual page analysis workflows instead of
image_analysis.Integration Relevance
- file_manager_tools to register, attach, and share images with entities.
- artifact_manager_tools to persist and link generated outputs.
- project_manager_tools to track visual assets by mission or task.
- document_index_tools to index extracted text from image-based documents.
- git_action for versioned storage of static image assets.
Configuration Details
- Use supported image formats such as PNG, JPEG/JPG, WEBP, and GIF.
- Use
file_nameplusrepo_idwhen needed; Genesis resolves the stored path in the runtime environment. - Prompts should describe subject, style, composition, and any constraints such as aspect ratio.
- Use
repo_idwhen the image lives outside the defaultuploadsrepository.
Vision and image-generation providers
image_analysis uses the active bot’s vision-capable chat provider when
available — for example Genesis AI, AWS Bedrock, Snowflake Cortex,
OpenAI, Azure OpenAI, or Databricks. Genesis AI routes vision
requests through its configured provider slot and credentials. Azure OpenAI and Databricks vision
calls route through LiteLLM with per-call credentials from the saved
providers.azureopenai or providers.databricks connection; Genesis does not
build a separate native OpenAI client for image analysis on those providers.
For AWS Bedrock, image analysis uses the saved Bedrock connection and its
chat routing settings, including its authentication and endpoint configuration.
Connect Bedrock under Settings → AI Providers and choose a vision-capable
model there; see AI Providers for connection setup.
The conversation’s model is tried first when it supports image input. If it
cannot read images, image analysis needs an available OpenAI credential or a
dedicated image key; Azure OpenAI is not offered as a separate fallback. If no
image path is available, switch to a vision-capable model, configure OpenAI in
AI Providers (an administrator may need to allow its use for images), or
set a dedicated key with set_image_api_key().
The conversation’s model is tried first when it supports image input. If it
cannot read images, image analysis needs an available OpenAI credential or a
dedicated image key; Azure OpenAI is not offered as a separate fallback. If no
image path is available, switch to a vision-capable model, configure OpenAI in
AI Providers (an administrator may need to allow its use for images), or
set a dedicated key with set_image_api_key().
image_generation uses the active LiteLLM Proxy when it is the active LLM
provider. Genesis selects the first discovered proxy model with the
image_generation catalog mode. Genesis AI uses its genesis-ai-image alias;
the alias may not appear in the user’s /models response. The proxy request is
made with that provider’s credentials (the user’s key on Genesis AI), and an
image returned as a URL is downloaded by Genesis. If proxy model discovery
fails, generation stops rather than switching providers. If the proxy has no
image model, image generation can still use OpenAI or AWS Bedrock
credentials from Config → AI Providers, or a dedicated image key via
set_image_api_key(). Azure OpenAI is not supported for image generation. See
Model Universe for discovered proxy models.
On Genesis Desktop, when desktop.genesis_ai_enabled is false, image
generation does not use Genesis AI. Follow chat uses the confirmed company image
provider when it supports images; otherwise generation is unavailable, and an
explicit Genesis AI choice is refused. See AI Providers.
Image Analysis API key
When the vision path falls back to a raw OpenAI client (for example OpenAI as the active provider),image_analysis resolves credentials in this order:
- The saved OpenAI connection in Config → AI Providers, including its API key and base URL.
- The caller’s scoped default Image Analysis (OpenAI) connection in Config → Connections (My default, then Role default), using the active conversation’s user and bot for secret access.
- Legacy
EXT_SERVICE_CONFIGvalues when no scoped default applies.
image_analysis default resolves but secret access fails, Genesis surfaces that error instead of silently using legacy configuration. Save an Image Analysis (OpenAI) connection under Dev Tools, set it as your default or a role default, and run Test Connection before relying on vision analysis in chat. See Connections and AI Providers for the provider and connection settings.
Limitations or Notes
image_analysisworks on image files only. For PDFs, use thegit_actionOCR or visual page analysis workflows.- Analysis quality depends on resolution and clarity of the source image.
- Very small text or dense tables may require higher resolution inputs.
- Generated images may vary from the prompt when instructions are vague.
- Large or many images can increase processing time and memory usage.
- Corrupted or unsupported files will return detailed error messages.
Output
- Image Analysis Descriptions of objects, text, layout, colors, and relationships. May include extracted text and confidence indicators.
- Image Generation
New image files with artifact ids and links for download or attachment. The
generation result includes
image_provider, identifying which provider made the image. - File Location and Retrieval Resolved paths for found files so downstream tools can display or attach them.
- Errors Clear messages for missing files, unsupported formats, or processing failures.

