Display adjustments
applyAdjustmentsFull Description
Apply adjustments for brightness, contrast, hue, saturation, vibrance, exposure, color balance, or black and white conversion. These adjustments can be applied to an entire image or parts of the image by manually adjusting sliders in the widget. Based on the user's intent, configure specific parameter values for each adjustment or let them start at defaults for manual adjustment. See below for list of available adjustments.
IMPORTANT: This tool does NOT analyze the image or apply image-context-aware logic. Default values are fixed schema values (e.g., exposure: 0), not computed from image content.
HOW TO USE THIS TOOL: 1. Basic usage
- Display adjustments with default starting values:
- Call with adjustments array: [{"id": "hueSat"}, {"id": "exposure"}]
- All parameters start at their default values; user adjusts manually via sliders
2. Advanced usage
- Pre-configure specific parameter values:
- Call with adjustments array including params: [{"id": "hueSat", "params": {"hue": 15, "saturation": 20}}, {"id": "exposure", "params": {"exposure": 0.5}}]
- Adjustment sliders will start at your specified values instead of defaults
- IMPORTANT: Only include parameters related to the user's intent - omit other parameters that would stay at defaults
3. The tool applies the adjustments to the image(s) with adjustment controls starting at configured or default values 4. User can click on the settings icon on each image to reveal adjustment sliders for real-time refinement 5. In your response, acknowledge any configured values and provide guidance on further adjustments if needed
MANDATORY PARAMETER DISCOVERY (ENFORCED): If any entry in the adjustments array includes a params object, you must use correct parameter names and constraints for that adjustment. If you do not already have the specific details (parameter names, ranges, defaults) for the adjustment in question, call getOptionsForAdjustments (no input) first to get them. When you receive results from getOptionsForAdjustments, you MUST follow the "instruction" for each parameter when configuring adjustment parameters—the instruction describes valid ranges, units, and how to interpret values.
ENFORCEMENT RULES: 1. For each adjustments[i].id where adjustments[i].params is present: a. Use specific details (parameter names, ranges, defaults) for the adjustment in question when you already have them; otherwise call getOptionsForAdjustments (no input) to get all adjustments and their parameters b. All keys in adjustments[i].params must exactly match parameter names returned by getOptionsForAdjustments c. All parameter values must meet the constraints provided by getOptionsForAdjustments d. ONLY include parameters that differ from their default values - omit any parameter already at its default 2. If no params objects are provided, discovery is optional and the tool uses default starting values. Note: Omitting params is NOT a way to reset an adjustment back to default. To reset, explicitly provide the default values in params (call getOptionsForAdjustments with no input to get defaults). 3. This discovery requirement applies to conceptual (e.g., "make the cat pink"), explicit (e.g., "set hue to +30"), and "auto"/"balance"/"fix" requests (e.g., "auto apply exposure", "balance the highlights")
Rationale: Prevents guesswork about parameter names and ranges, ensures consistent behavior across schema changes, protects users from invalid configurations.
ADJUSTMENT SELECTION STRATEGY: 1. VAGUE REQUESTS (e.g., "apply adjustments")
- Call this tool with no adjustments to show the default set of adjustments
2. SPECIFIC INTENT (descriptive, explicit names, "auto"/"balance"/"fix" requests, conceptual/visual, or numeric values)
- Includes: "improve lighting", "enhance colors", "adjust exposure", "auto apply exposure", "auto balance the highlights", "fix the shadows", "balance the image"
- Color Changes
- Unless hue or saturation adjustments are explicitly requested: use InstructEditV5 Generative features for color or tone changes.
- A request for an image to be black and white should be handled by the grey adjustment tool.
- If you do not have the specific details (parameter names, ranges, defaults) for the adjustment in question, call getOptionsForAdjustments (no input) to get them. Never assume parameter names or ranges.
- Selection: For descriptive intent, select up to 5 relevant adjustments (lighting: exposure, brightness, contrast; colors: saturation, vibrance, hueSat). For explicit name or "auto X" requests, provide ONLY that adjustment in the array and suggest related ones in response text.
- Parameters: Start with defaults unless the user specifies amounts. For conceptual/visual (e.g., "make cat pink", "warmer tones"), numeric (e.g., "set hue to +30"), or "auto"/"balance"/"fix" requests (e.g., "auto apply exposure", "balance the highlights"), configure reasonable starting values from discovered options - the tool does not compute values from image content.
- Response: For configured values, acknowledge them in your reply (e.g., "I've set the hue to +30 and saturation to +40. The adjustment controls are now displayed - you can further refine these using the sliders if needed.").
3. MORE ADJUSTMENTS REQUEST (applies after any of the above)
- User asks for more adjustments: pick additional adjustments based on image context and intent, without repeating any already shown, until all are shown or limit reached
- Never repeat an adjustment unless the user explicitly requests it again
CONSTRAINTS:
- Maximum 5 adjustments per request
- If user requests more than 5, suggest remaining adjustments in the tool response
- DO NOT automatically make multiple tool calls for remaining adjustments
- Always WAIT for explicit user confirmation before displaying additional batches
- DO NOT use this tool to undo by passing an empty adjustments list. For undo, use the undoEdits tool instead
AVAILABLE ADJUSTMENTS: When asked to list available adjustments, use only the adjustment name (not the ID), description, and recommended for fields. When selecting adjustments for the adjustmentIds parameter, use the Adjustment ID value shown below.
Adjustment ID: brightnessContrast
- Name: Brightness & contrast
- Description: Changes the brightness and contrast of an image.
- Recommended for: Any image.
Adjustment ID: contrast
- Name: Contrast
- Description: Adjusts the overall intensity of colors.
- Recommended for: Any color image with low contrast.
Adjustment ID: exposure
- Name: Exposure
- Description: Brightens or darkens your image to make you properly lit and visible. Brings you out of shadows or tones down overexposure so you're the clear focal point with perfect lighting.
- Recommended for: Making yourself stand out by fixing underexposure, bringing yourself out of dark shadows, ensuring you're properly lit and visible in photos, balancing lighting so you're prominent, making sure you're not lost in dim or overly bright areas
Adjustment ID: gray
- Name: Gray (Black / White)
- Description: Converts your color image to black-and-white by desaturating it.
- Recommended for: Any color image.
Adjustment ID: highlightsShadows
- Name: Highlights & Shadows
- Description: Adjusts tonal highlights or shadows.
- Recommended for: Any image with low contrast between highlights and shadows.
Adjustment ID: hueSat
- Name: Hue & saturation
- Description: Changes the hue, saturation, and lightness of an image.
- Recommended for: Any color image
Adjustment ID: saturation
- Name: Saturation
- Description: Dramatically enhances color vibrancy to make you or your subject pop from the background. Powerfully increases visual impact by intensifying all color saturation for maximum presence.
- Recommended for: Making yourself stand out in photos, dramatically emphasizing people and subjects in a scene, drawing maximum attention to the main subject, increasing visual presence and impact, making yourself the vibrant focal point of any image
Adjustment ID: vibrance
- Name: Vibrance
- Description: Intelligently enhances color vibrancy to make you pop from the background while preserving natural skin tones. Selectively boosts muted colors for a flattering, eye-catching look.
- Recommended for: Making yourself stand out in photos, portraits where you want to be the focal point, enhancing your presence without oversaturating skin tones, drawing attention to people in group shots, creating vibrant but natural-looking portraits
Adjustment ID: whiteBalance
- Name: White Balance
- Description: Changes the color temperature and tint of an image, changing all colors in the image.
- Recommended for: Any color image
Parameters (2 required, 5 optional)
inputImageTypestringThe type of the input image. If the user uploaded an image in this request, use "nativeImage" (and pass nativeImage). If there is no new image upload, read the latest widget state and set this param to currentInputImage.type. If multiple widget states are present, read the one with the most recent updateTimestamp. DO NOT use instructEditInputImage.type. Use nativeImage params when type is "nativeImage", or imageURI when type is "url".
nativeImageurloriginalUploadedImagestringThe path to the original image for the current editing session for that particular image. IMPORTANT: If an image was just uploaded to chat, this should be the local path of the image starting with "/mnt", otherwise read this from the widget state.
adjustmentsarrayArray of Photoshop adjustments to display in the interactive widget with the image. Select adjustments intelligently based on user intent.
imageURIstringUse this when the inputImageType param is "url". Read the latest widget state and set this param to currentInputImage.URL. If multiple widget states are present, read the one with the most recent updateTimestamp. Do NOT use instructEditInputImage.URL. Use a valid accessible image URL (http or https). Do NOT reuse URLs from earlier assistant messages or tool responses.
maskobjectThe mask to be applied to the image. This must contain the following fields: - maskURI: The URI of the mask to be applied to the image, must be generated from the same image being used in this tool call. - maskDescription: The description of the mask, this will be outputted from the selection tool alongside the maskURI. - toBeInverted: Set to true if targeting the area OUTSIDE the mask, false otherwise. e.g., subject mask + invert = background selection. This should be provided if the user wants to apply the effect to a specific area of the image like the main subject, the background or a particular object (e.g., blur the background). IMPORTANT: If a maskURI exists in the context, you MUST verify it was generated from the same image being used in this tool call. If the maskURI was generated from a different image, or if no maskURI exists, you must use the selection tool to generate a new mask from the current image before calling this tool.
nativeImageobjectUse this when the inputImageType param is "nativeImage". Use this when the user uploads a new image in this request, or when currentInputImage.type is "nativeImage" in the latest widget state. If multiple widget states are present, read the one with the most recent updateTimestamp. For new uploads, use the uploaded image; otherwise set this param to currentInputImage.nativeImagePath. Valid paths start with "/mnt/".
replaceLastEditbooleanBoolean value that tells the widget to undo the previous effect before applying the next requested. **For Example** a prompt like "undo the last effect and apply a twirl" would set this boolean to true to undo the last effect before applying what is requested in this prompt. With this input parameter the undoEdit tool does not need to be called before calling the next effect tool