Built-in tool
Extract Text
Flatten an array of structured objects (Notion blocks, Slack messages, HTML elements, or custom paths) into one plain-text string.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| inputArraystring · required | string | required | The array of objects to extract text from. Each object in the array is traversed for text content. |
| sourceFormatstring · required | string | required | The format of the input data. Determines how text is located within each object. One of: |
| textFieldPathstring · required if sourceFormat is custom | string | required if sourceFormat is custom | Dot-notation path to the text inside each object. Use [] for arrays. Example: |
| typeFieldPathstring · optional | string | optional | Path to a type field that determines which text path to read for each object. Leave blank if all objects have the same structure. Used only when sourceFormat is custom. Example: |
| separatorstring · optional | string | optional | Character(s) placed between each extracted text segment. Defaults to a blank line. Example: |
| mergeFieldsrepeating-group · optional | repeating-group | optional | Attach additional values from other nodes alongside the extracted text. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"extractedText"
],
"properties": {
"extractedText": {
"type": "string",
"description": "All text joined by separator"
}
},
"additionalProperties": true
}