L2 Hub
Google
gdocs
Get All Text

L2 Construct: get_all_text

docs google

Description

GetAllTextFromDocument retrieves all text content from a Google Docs document and returns the full text content.

L2 Data

  1. Provider: google
  2. Module: gdocs
  3. Action: get_all_text

Example Step

{
  "name": "insert-your-step-name",
  "type": "l2",
  "l2_data": {
    "provider": "google",
    "module": "gdocs",
    "action": "get_all_text"
  }
}
 

Input

Example

{
  "document_id": "1abc123...xyz789"
}
 

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pontus.bpa/pkgs/l2/google/gdocs/get-all-text-input",
  "$ref": "#/$defs/GetAllTextInput",
  "$defs": {
    "GetAllTextInput": {
      "properties": {
        "document_id": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["document_id"]
    }
  }
}
 

Output

Example

{
  "full_text": "This is the full text content of the document..."
}
 

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://pontus.bpa/pkgs/l2/google/gdocs/get-all-text-output",
  "$ref": "#/$defs/GetAllTextOutput",
  "$defs": {
    "GetAllTextOutput": {
      "properties": {
        "full_text": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": ["full_text"]
    }
  }
}