# tables.getCells

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



- Member path: `doc.tables.getCells(…)`
- Mutates document: no
- Idempotency: `idempotent`
- Supports tracked mode: no
- Supports dry run: no

## Expected result

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

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "TableAddress": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "block"
        },
        "nodeType": {
          "const": "table"
        },
        "nodeId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "nodeType",
        "nodeId"
      ]
    }
  },
  "type": "object",
  "properties": {
    "target": {
      "$ref": "#/$defs/TableAddress"
    },
    "nodeId": {
      "type": "string"
    },
    "rowIndex": {
      "type": "integer",
      "minimum": 0
    },
    "columnIndex": {
      "type": "integer",
      "minimum": 0
    }
  },
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "target"
      ]
    },
    {
      "required": [
        "nodeId"
      ]
    }
  ]
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "TableAddress": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "block"
        },
        "nodeType": {
          "const": "table"
        },
        "nodeId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "nodeType",
        "nodeId"
      ]
    },
    "TableCellAddress": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "block"
        },
        "nodeType": {
          "const": "tableCell"
        },
        "nodeId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "nodeType",
        "nodeId"
      ]
    }
  },
  "type": "object",
  "properties": {
    "nodeId": {
      "type": "string"
    },
    "address": {
      "$ref": "#/$defs/TableAddress"
    },
    "cells": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string"
          },
          "address": {
            "$ref": "#/$defs/TableCellAddress"
          },
          "rowIndex": {
            "type": "integer",
            "minimum": 0
          },
          "columnIndex": {
            "type": "integer",
            "minimum": 0
          },
          "colspan": {
            "type": "integer",
            "minimum": 1
          },
          "rowspan": {
            "type": "integer",
            "minimum": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "nodeId",
          "address",
          "rowIndex",
          "columnIndex",
          "colspan",
          "rowspan"
        ]
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "nodeId",
    "address",
    "cells"
  ]
}
```

## Pre-apply throws

- `TARGET_NOT_FOUND`

## Non-applied receipt codes

- None

