Skip to main content
Tweet & extraction

data.tweet.break — Mini Tweet Break

Breaks a tweet object into fields (mini tweet schema). Inputs
PortKindTypeStructure
tweetdatamini_tweetscalar
Outputs
PortKindTypeStructureNotes
tweet-iddatastringscalar
typedatatweet_typescalarUppercased (TWEET, QUOTE, …)
author-handledatastringscalarLowercased, no leading @
author-namedatastringscalar
author-avatardataimage_urlscalarnull if missing
body-textdatastringscalar
imagesdataimage_urlarray

data.tweet.breakFull — Full Tweet Break

Breaks a full tweet payload into fields (including subtweet when available). Inputs
PortKindTypeStructure
tweetdatafull_tweetscalar
Outputs Same as data.tweet.break, plus:
PortKindTypeStructureNotes
subtweetdatafull_tweetscalarOptional; null if not present

data.tweet.toUrl — Tweet To URL

Converts a tweet to its canonical X URL. Inputs
PortKindTypeStructure
tweetdatamini_tweetscalar
Outputs
PortKindTypeStructure
urldataurlscalar

data.tweet.waitForSubtweet — Wait For Subtweet

Attempts to fetch a full tweet payload for a mini tweet (including subtweet). Inputs
PortKindTypeStructureNotes
exec-inexecRequired
tweetdatamini_tweetscalarRequired
Outputs
PortKindTypeStructureNotes
exec-outexec
full-tweetdatafull_tweetscalarFalls back to original tweet if no listener available

Variables

data.variable.get — Get Variable

Reads the current value of a named variable. Outputs
PortKindTypeStructureNotes
valuedata(generic)scalarType/structure come from metadata and the variable definition
Notes:
  • The node’s variable name comes from node metadata (stored under variable).

data.variable.set / data.variable.set::<id> — Set Variable

Writes a new value to a named variable. Inputs
PortKindTypeStructureNotes
exec-inexecRequired
value-indata(generic)scalarType/structure come from metadata and the variable definition
Outputs
PortKindTypeStructure
exec-outexec
Notes:
  • The editor may display the node as “Set Variable” for a specific variable you picked.

Utilities

data.literal — Literal Value

Outputs a literal value configured in the sidebar. Outputs
PortKindTypeStructure
valuedata(generic)(generic)
Metadata/config:
  • value — the literal JSON value
  • Value type — the port data type (UI typing + runtime coercion)
  • Value structure — scalar / array / map

data.getAtIndex — Get At Index

Gets an item from an array. Inputs
PortKindTypeStructure
arraydata(generic)array
indexdataintegerscalar
Outputs
PortKindTypeStructureNotes
resultdata(generic)scalarOptional; null if out of bounds
founddatabooleanscalar
Notes:
  • Negative indices return found = false and result = null.

data.cast — Cast

Casts a value to a configured target type/structure; on failure returns null. Inputs
PortKindTypeStructure
value-indata(generic)(generic)
Outputs
PortKindTypeStructure
resultdata(generic)(generic)
Config/metadata:
  • Configure the target type and target structure in the sidebar to choose the cast.

data.array.length — Array Length

Returns the length of an array. Inputs
PortKindTypeStructure
arraydata(generic)array
Outputs
PortKindTypeStructure
lengthdataintegerscalar

data.array.includes — Array Includes

Checks if an array contains a value. Inputs
PortKindTypeStructure
arraydata(generic)array
valuedata(generic)scalar
Outputs
PortKindTypeStructure
containsdatabooleanscalar
Config:
  • caseSensitive (bool, default false) affects string matching.

data.drawTicker — Draw Ticker

Renders a ticker image and returns an image_url plus the raw image_blob. Inputs
PortKindTypeStructureNotes
tickerdatastringscalarRequired
styledataticker_stylescalarRequired (ASCII, BNB_GOLD, SOL_GRADIENT)
Outputs
PortKindTypeStructureNotes
imagedataimage_urlscalarPredicted URL based on IPFS_HOST_URL
image_blobdataimage_blobscalarJPEG bytes
Notes:
  • Requires IPFS_HOST_URL in the runtime environment.
  • Upload is spawned asynchronously; the URL is “predicted” from the host + generated filename.