> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-nick-sd-2099-images-core-lifecycle-placement-seman.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# tables.getCells

> Retrieve cell information for a table, optionally filtered by row or column.

> Alpha: Document API is currently alpha and subject to breaking changes.

## Summary

Retrieve cell information for a table, optionally filtered by row or column.

* Operation ID: `tables.getCells`
* API member path: `editor.doc.tables.getCells(...)`
* Mutates document: `no`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `no`
* Deterministic target resolution: `yes`

## Expected result

Returns a TablesGetCellsOutput with cell information for the requested rows and columns.

## Input fields

### Variant 1

*No fields.*

### Variant 2

*No fields.*

### Example request

```json theme={null}
{
  "nodeId": "node-def456",
  "rowIndex": 1,
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "paragraph"
  }
}
```

## Output fields

| Field         | Type      | Required | Description |
| ------------- | --------- | -------- | ----------- |
| `cells`       | object\[] | yes      |             |
| `tableNodeId` | string    | yes      |             |

### Example response

```json theme={null}
{
  "cells": [
    {
      "colspan": 1,
      "columnIndex": 1,
      "nodeId": "node-def456",
      "rowIndex": 1,
      "rowspan": 1
    }
  ],
  "tableNodeId": "example"
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`

## Non-applied failure codes

* None

## Raw schemas

<Accordion title="Raw input schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "oneOf": [
      {
        "required": [
          "target"
        ]
      },
      {
        "required": [
          "nodeId"
        ]
      }
    ],
    "properties": {
      "columnIndex": {
        "minimum": 0,
        "type": "integer"
      },
      "nodeId": {
        "type": "string"
      },
      "rowIndex": {
        "minimum": 0,
        "type": "integer"
      },
      "target": {
        "$ref": "#/$defs/BlockNodeAddress"
      }
    },
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw output schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "cells": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "colspan": {
              "minimum": 1,
              "type": "integer"
            },
            "columnIndex": {
              "minimum": 0,
              "type": "integer"
            },
            "nodeId": {
              "type": "string"
            },
            "rowIndex": {
              "minimum": 0,
              "type": "integer"
            },
            "rowspan": {
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "nodeId",
            "rowIndex",
            "columnIndex",
            "colspan",
            "rowspan"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "tableNodeId": {
        "type": "string"
      }
    },
    "required": [
      "tableNodeId",
      "cells"
    ],
    "type": "object"
  }
  ```
</Accordion>
