---
title: "prefs.get: Get Preferences — Photo kit command — Kition"
description: "Answers every preference section and its values (color settings, interface, tools, performance, …)."
canonical: "https://developer.kition.ai/docs/kits/photo/commands/prefs.get"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/photo/commands/prefs.get](https://developer.kition.ai/docs/kits/photo/commands/prefs.get)

# prefs.get

**Get Preferences.** Answers every preference section and its values (color settings, interface, tools, performance, …).

- Kit: Photo 0.1.0 (PSD, PSB, or .kphoto); reference: [Photo kit commands](https://developer.kition.ai/docs/kits/photo.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `coalesce` | `string` | no | Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one. |
| `path` | `string \| object` | no | "section.key"?=everything (e.g. "performance.historyStates", "colorSettings.workingRgb"); e.g. "performance.historyStates", "colorSettings.workingRgb"; default everything |

## Call through photo_run

```text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "prefs.get" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `coalesce`, `path`. photo_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `colorSettings` | `object` | no |  |
| `cursors` | `object` | no |  |
| `dialogs` | `object` | no |  |
| `enhancedControls` | `object` | no |  |
| `export` | `object` | no |  |
| `fileHandling` | `object` | no |  |
| `general` | `object` | no |  |
| `guidesGridAndSlices` | `object` | no |  |
| `integrations` | `object` | no |  |
| `interface` | `object` | no |  |
| `menus` | `object` | no |  |
| `panelLayout` | `any` | no |  |
| `performance` | `object` | no |  |
| `plugIns` | `object` | no |  |
| `rawDefaults` | `object` | no |  |
| `scratchDisks` | `object` | no |  |
| `scriptEvents` | `object` | no |  |
| `shortcuts` | `object` | no |  |
| `toolbar` | `object` | no |  |
| `tools` | `object` | no |  |
| `transparencyAndGamut` | `object` | no |  |
| `type` | `object` | no |  |
| `unitsAndRulers` | `object` | no |  |
| `userDictionary` | `any[]` | no |  |
| `workspace` | `object` | no |  |
| `workspaceLocked` | `boolean` | no |  |
| `workspaces` | `object` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "colorSettings": {
      "additionalProperties": true,
      "properties": {
        "askOnMismatch": {
          "type": "boolean"
        },
        "askOnMissing": {
          "type": "boolean"
        },
        "askOnPaste": {
          "type": "boolean"
        },
        "blendTextGamma": {
          "type": "number"
        },
        "bpc": {
          "type": "boolean"
        },
        "dither": {
          "type": "boolean"
        },
        "intent": {
          "type": "string"
        },
        "monitorProfile": {
          "type": "string"
        },
        "policyCmyk": {
          "type": "string"
        },
        "policyGray": {
          "type": "string"
        },
        "policyRgb": {
          "type": "string"
        },
        "workingCmyk": {
          "type": "string"
        },
        "workingGray": {
          "type": "string"
        },
        "workingRgb": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "cursors": {
      "additionalProperties": true,
      "properties": {
        "brushPreviewColor": {
          "type": "string"
        },
        "other": {
          "type": "string"
        },
        "painting": {
          "type": "string"
        },
        "showCrosshairInBrushTip": {
          "type": "boolean"
        },
        "showOnlyCrosshairWhilePainting": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "dialogs": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "enhancedControls": {
      "additionalProperties": true,
      "properties": {
        "rotateViewWithTrackpad": {
          "type": "boolean"
        },
        "scrubbySliderAcceleration": {
          "type": "boolean"
        },
        "touchGestures": {
          "type": "boolean"
        },
        "zoomWithTrackpadPinch": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "export": {
      "additionalProperties": true,
      "properties": {
        "convertToSrgb": {
          "type": "boolean"
        },
        "jpegQuality": {
          "type": "integer"
        },
        "metadata": {
          "type": "string"
        },
        "quickExportFormat": {
          "type": "string"
        },
        "quickExportLocation": {
          "type": "string"
        },
        "webpLossless": {
          "type": "boolean"
        },
        "webpQuality": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "fileHandling": {
      "additionalProperties": true,
      "properties": {
        "ignoreExifProfileTag": {
          "type": "boolean"
        },
        "imagePreviews": {
          "type": "string"
        },
        "maximizePsdCompatibility": {
          "type": "string"
        },
        "saveInBackground": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "general": {
      "additionalProperties": true,
      "properties": {
        "alwaysCreateObjectLayersWhenPlacing": {
          "type": "boolean"
        },
        "animatedZoom": {
          "type": "boolean"
        },
        "beepWhenDone": {
          "type": "boolean"
        },
        "colorPicker": {
          "type": "string"
        },
        "imageInterpolation": {
          "type": "string"
        },
        "resizeImageDuringPlace": {
          "type": "boolean"
        },
        "useLegacyFreeTransform": {
          "type": "boolean"
        },
        "zoomResizesWindows": {
          "type": "boolean"
        },
        "zoomWithScrollWheel": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "guidesGridAndSlices": {
      "additionalProperties": true,
      "properties": {
        "gridColor": {
          "type": "string"
        },
        "gridStyle": {
          "type": "string"
        },
        "gridUnit": {
          "type": "string"
        },
        "gridlineEvery": {
          "type": "number"
        },
        "guideColor": {
          "type": "string"
        },
        "guideStyle": {
          "type": "string"
        },
        "showSliceNumbers": {
          "type": "boolean"
        },
        "sliceColor": {
          "type": "string"
        },
        "smartGuideColor": {
          "type": "string"
        },
        "subdivisions": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "integrations": {
      "additionalProperties": true,
      "properties": {
        "allowAgentControl": {
          "type": "boolean"
        },
        "controlPort": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "interface": {
      "additionalProperties": true,
      "properties": {
        "canvasBorder": {
          "type": "string"
        },
        "canvasColor": {
          "type": "string"
        },
        "canvasCustomColor": {
          "type": "string"
        },
        "dynamicColorSliders": {
          "type": "boolean"
        },
        "showBoundingBoxWhenDraggingLayer": {
          "type": "boolean"
        },
        "showChannelsInColor": {
          "type": "boolean"
        },
        "showMenuColors": {
          "type": "boolean"
        },
        "showTooltips": {
          "type": "boolean"
        },
        "theme": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "menus": {
      "additionalProperties": true,
      "properties": {
        "colors": {
          "additionalProperties": true,
          "properties": {},
          "type": "object"
        },
        "hidden": {
          "type": "array"
        }
      },
      "type": "object"
    },
    "panelLayout": {},
    "performance": {
      "additionalProperties": true,
      "properties": {
        "cacheLevels": {
          "type": "integer"
        },
        "cacheTileSize": {
          "type": "integer"
        },
        "effectCacheMb": {
          "type": "integer"
        },
        "gpuBackend": {
          "type": "string"
        },
        "historyStates": {
          "type": "integer"
        },
        "legacyCompositing": {
          "type": "boolean"
        },
        "lowResolutionPreviews": {
          "type": "boolean"
        },
        "memoryUsageMb": {
          "type": "integer"
        },
        "renderingMode": {},
        "useGpu": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "plugIns": {
      "additionalProperties": true,
      "properties": {
        "additionalPluginsFolder": {
          "type": "string"
        },
        "allowScriptsToConnect": {
          "type": "boolean"
        },
        "generatorEnabled": {
          "type": "boolean"
        },
        "showExtensionPanels": {
          "type": "boolean"
        },
        "useAdditionalPluginsFolder": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "rawDefaults": {
      "additionalProperties": true,
      "properties": {
        "applyAutoTone": {
          "type": "boolean"
        },
        "bitDepth": {
          "type": "string"
        },
        "colorSpace": {
          "type": "string"
        },
        "openAsObjectLayer": {
          "type": "boolean"
        },
        "openInRawDevelop": {
          "type": "boolean"
        },
        "resolution": {
          "type": "number"
        },
        "sharpenFor": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "scratchDisks": {
      "additionalProperties": true,
      "properties": {
        "disks": {
          "items": {},
          "type": "array"
        }
      },
      "type": "object"
    },
    "scriptEvents": {
      "additionalProperties": true,
      "properties": {
        "bindings": {
          "type": "array"
        },
        "enabled": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "shortcuts": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    },
    "toolbar": {
      "additionalProperties": true,
      "properties": {
        "hidden": {
          "type": "array"
        },
        "order": {
          "type": "array"
        }
      },
      "type": "object"
    },
    "tools": {
      "additionalProperties": true,
      "properties": {
        "doubleClickLayerMaskLaunchesRefineSelection": {
          "type": "boolean"
        },
        "enableFlickPanning": {
          "type": "boolean"
        },
        "overscroll": {
          "type": "boolean"
        },
        "rightClickWithPaintingTools": {
          "type": "string"
        },
        "showTooltips": {
          "type": "boolean"
        },
        "showTransformationValues": {
          "type": "boolean"
        },
        "snapVectorToolsAndTransformsToPixelGrid": {
          "type": "boolean"
        },
        "useShiftKeyForToolSwitch": {
          "type": "boolean"
        },
        "useTabletPressure": {
          "type": "boolean"
        },
        "varyRoundBrushHardnessOnHud": {
          "type": "boolean"
        },
        "zoomClickedPointToCenter": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "transparencyAndGamut": {
      "additionalProperties": true,
      "properties": {
        "customDark": {
          "type": "string"
        },
        "customLight": {
          "type": "string"
        },
        "gamutWarningColor": {
          "type": "string"
        },
        "gamutWarningOpacity": {
          "type": "integer"
        },
        "gridColors": {
          "type": "string"
        },
        "gridSize": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "type": {
      "additionalProperties": true,
      "properties": {
        "fillNewTypeLayersWithPlaceholder": {
          "type": "boolean"
        },
        "fontPreview": {
          "type": "string"
        },
        "missingGlyphProtection": {
          "type": "boolean"
        },
        "recentFonts": {
          "type": "integer"
        },
        "showFontNamesInEnglish": {
          "type": "boolean"
        },
        "smartQuotes": {
          "type": "boolean"
        },
        "textEngine": {
          "type": "string"
        },
        "useEscToCommit": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "unitsAndRulers": {
      "additionalProperties": true,
      "properties": {
        "columnWidth": {
          "type": "number"
        },
        "gutter": {
          "type": "number"
        },
        "pointSize": {
          "type": "string"
        },
        "printResolution": {
          "type": "number"
        },
        "rulers": {
          "type": "string"
        },
        "screenResolution": {
          "type": "number"
        },
        "typeUnits": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "userDictionary": {
      "type": "array"
    },
    "workspace": {
      "additionalProperties": true,
      "properties": {
        "autoCollapseIconPanels": {
          "type": "boolean"
        },
        "autoShowHiddenPanels": {
          "type": "boolean"
        },
        "enableFloatingDocumentWindowDocking": {
          "type": "boolean"
        },
        "enableNarrowOptionsBar": {
          "type": "boolean"
        },
        "largeTabs": {
          "type": "boolean"
        },
        "openDocumentsAsTabs": {
          "type": "boolean"
        },
        "rememberWorkspaceChanges": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "workspaceLocked": {
      "type": "boolean"
    },
    "workspaces": {
      "additionalProperties": true,
      "properties": {},
      "type": "object"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "coalesce": {
      "description": "Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.",
      "type": "string"
    },
    "path": {
      "description": "\"section.key\"?=everything (e.g. \"performance.historyStates\", \"colorSettings.workingRgb\"); e.g. \"performance.historyStates\", \"colorSettings.workingRgb\"; default everything",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "additionalProperties": true,
          "type": "object"
        }
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/photo-darwin-arm64@0.1.0 and the kit itself (photo_commands through @kition/cli@0.1.1, built from KitionAI/kition-photo@abe3f30).
