get_context_state
Retrieve the current GIMP context state, including colors, brush, opacity, blend mode, feathering, and antialiasing, to verify settings before drawing and detect changes made in the GIMP UI.
Instructions
Get the current GIMP context state (colors, brush, settings).
IMPORTANT: Context state can be changed by the user in GIMP UI at any time. Check context state before operations that depend on specific settings.
Returns information about:
Foreground and background colors (RGB/RGBA values)
Current brush and its properties
Opacity setting (0-100%)
Paint/blend mode
Feather state and radius
Antialiasing state
Use cases:
Verify colors before drawing operations
Check if feathering is enabled (avoid unwanted blurry edges)
Ensure correct opacity and blend mode
Detect if user changed settings in GIMP UI
Returns:
Dictionary containing current context state
Raises exception if unable to get context state
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||