Tool reference

Add AI-Generated Field

Generate a new attribute field from existing feature attributes using AI

Key
AddAIGeneratedFieldTool
Name Type Description Default Options
Input Layer dropdown The input layer to enrich — —
Source Fields text Comma-separated source fields to send to AI — —
Instruction text The instruction used to generate the new field — —
Output Field Name text The field to write — —
Output Type dropdown The output field type text text, number, boolean
Overwrite Existing Field boolean Overwrite existing values in the output field false —

State mode: featureCollection · Mutates state: yes · Produces artifacts: no

Inputs
  • featureCollection → featureCollection · Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon · honors selection
Outputs
  • featureCollection → update · preserved
{
  "key": "AddAIGeneratedFieldTool",
  "name": "Add AI-Generated Field",
  "description": "Generate a new attribute field from existing feature attributes using AI",
  "headlessSupported": true,
  "parameters": [
    {
      "name": "Input Layer",
      "description": "The input layer to enrich",
      "type": "dropdown",
      "defaultValue": ""
    },
    {
      "name": "Source Fields",
      "description": "Comma-separated source fields to send to AI",
      "type": "text",
      "defaultValue": ""
    },
    {
      "name": "Instruction",
      "description": "The instruction used to generate the new field",
      "type": "text",
      "defaultValue": "",
      "required": true
    },
    {
      "name": "Output Field Name",
      "description": "The field to write",
      "type": "text",
      "defaultValue": "",
      "required": true
    },
    {
      "name": "Output Type",
      "description": "The output field type",
      "type": "dropdown",
      "defaultValue": "text",
      "options": [
        "text",
        "number",
        "boolean"
      ],
      "required": true
    },
    {
      "name": "Overwrite Existing Field",
      "description": "Overwrite existing values in the output field",
      "type": "boolean",
      "defaultValue": false
    }
  ],
  "execution": {
    "stateMode": "featureCollection",
    "inputs": [
      {
        "kind": "featureCollection",
        "geometryTypes": [
          "Point",
          "MultiPoint",
          "LineString",
          "MultiLineString",
          "Polygon",
          "MultiPolygon"
        ],
        "cardinality": "many",
        "selectionAware": true
      }
    ],
    "outputs": [
      {
        "kind": "featureCollection",
        "operation": "update",
        "geometryType": "preserved"
      }
    ],
    "mutatesState": true,
    "producesArtifacts": false
  }
}