Skip to content

Create meta plugin ReadFile with FileFormat dropdown and single-file input #45

@gravity-api

Description

@gravity-api

Add a new meta plugin named ReadFile that exposes a unified API for extracting text from a single file during an automation run. The user selects a required FileFormat from a streamdown plugins and provides exactly one file source (Path, Url, or Base64). The meta plugin then delegates to the matching streamdown plugin implementation.

This follows the same architecture pattern as SendHttpRequest: users interact only with the meta plugin, while concrete implementations are separate plugins.

Inputs (Meta Plugin)

The meta plugin must accept these parameters:

Name Type Mandatory Description
FileFormat String Expression
Path String Expression
Url String Expression
Base64 String Expression

Output (Meta Plugin)

The meta plugin must store results in session parameters using consistent names:

Session Parameter Description
ReadFileText Extracted text content
ReadFileFormat Pdf or Docx
ReadFileSource Path, Url, or Base64

Optional (only if downstream provides it):

  • ReadFilePagesCount (Pdf)
  • ReadFileParagraphsCount (Docx)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions