Adobe Photoshop · JSON Structure

Adobe Photoshop Api Smart Object Request Structure

SmartObjectRequest from Adobe Photoshop API

Type: object Properties: 3 Required: 3
AI/MLCreative CloudImage EditingPhotoshopPluginsREST APIScripting

SmartObjectRequest is a JSON Structure definition published by Adobe Photoshop, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

inputs options outputs

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-photoshop/refs/heads/main/json-structure/adobe-photoshop-api-smart-object-request-structure.json",
  "name": "SmartObjectRequest",
  "description": "SmartObjectRequest from Adobe Photoshop API",
  "type": "object",
  "properties": {
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StorageInput"
      }
    },
    "options": {
      "type": "object",
      "required": [
        "layers"
      ],
      "properties": {
        "layers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Layer name to target."
              },
              "id": {
                "type": "int32",
                "description": "Layer ID to target."
              },
              "type": {
                "type": "string",
                "const": "smartObject"
              },
              "input": {
                "$ref": "#/components/schemas/StorageInput"
              },
              "smartObject": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "MIME type of the replacement content."
                  }
                }
              },
              "attributes": {
                "$ref": "#/components/schemas/LayerBounds"
              }
            }
          }
        }
      }
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StorageOutput"
      }
    }
  },
  "required": [
    "inputs",
    "options",
    "outputs"
  ]
}