Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Get detailed information about a specific field.
  • Operation ID: fields.get
  • API member path: editor.doc.fields.get(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a FieldInfo object with the field’s instruction, result text, and nesting data.

Input fields

FieldTypeRequiredDescription
targetobject(kind=“field”)yes
target.blockIdstringyes
target.kind"field"yesConstant: "field"
target.nestingDepthintegerno
target.occurrenceIndexintegeryes

Example request

{
  "target": {
    "blockId": "block-abc123",
    "kind": "field",
    "nestingDepth": 1,
    "occurrenceIndex": 1
  }
}

Output fields

No fields.

Example response

{}

Pre-apply throws

  • TARGET_NOT_FOUND
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • None

Raw schemas

{
  "additionalProperties": false,
  "properties": {
    "target": {
      "additionalProperties": false,
      "properties": {
        "blockId": {
          "type": "string"
        },
        "kind": {
          "const": "field"
        },
        "nestingDepth": {
          "type": "integer"
        },
        "occurrenceIndex": {
          "type": "integer"
        }
      },
      "required": [
        "kind",
        "blockId",
        "occurrenceIndex"
      ],
      "type": "object"
    }
  },
  "required": [
    "target"
  ],
  "type": "object"
}
{
  "type": "object"
}