I am not sure what you are asking. If you want to pass a string to Node Red, an http get command for example, construct it in a Home Assistant helper entity, then in Node Red use the Get Entities node.
[{"id":"176f64603e0a1019","type":"inject","z":"60a4ced8.76688","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":4600,"wires":[["c474bc06114b525c"]]},{"id":"c474bc06114b525c","type":"ha-get-entities","z":"60a4ced8.76688","name":"","server":"1a01105e.d71ab","version":0,"rules":[{"property":"entity_id","logic":"starts_with","value":"input_text.jeep_presence","valueType":"str"}],"output_type":"random","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":"3","x":310,"y":4600,"wires":[["d624780fac2f483e"]]},{"id":"d624780fac2f483e","type":"debug","z":"60a4ced8.76688","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":470,"y":4600,"wires":[]},{"id":"1a01105e.d71ab","type":"server","name":"Home Assistant- Raspberry","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]