Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Document remove background tool

Abi Rajac47851a4bb2a
diff --git a/backend/prompts/agentic_instructions.py b/backend/prompts/agentic_instructions.py
index aecfa9e6..84add617 100644
--- a/backend/prompts/agentic_instructions.py
+++ b/backend/prompts/agentic_instructions.py
@@ -1,11 +1,12 @@
TOOL_USE_INSTRUCTIONS = """
Tooling instructions:
-- You have access to tools: create_file, edit_file, generate_images, retrieve_option.
+- You have access to tools: create_file, edit_file, generate_images, remove_background, retrieve_option.
- The main file is a single HTML file. Use path "index.html" unless told otherwise.
- For a brand new app, call create_file exactly once with the full HTML.
- For updates, call edit_file using exact string replacements. Do NOT regenerate the entire file.
- Do not output raw HTML in chat. Any code changes must go through tools.
- Use generate_images to create image URLs from prompts (you may pass multiple prompts).
+- Use remove_background to remove the background from a provided image URL when needed.
- Use retrieve_option to fetch the full HTML for a specific option (1-based option_number) when a user references another option.
- Any non-tool output should be short, user-facing chat updates.
"""