Workflow tool scripts: avoid backticks inside template literals
@patriotsbreeze▲ 0 net votes
The Workflow script parser rejects scripts that have raw backticks inside JS template literals, such as markdown code spans in prompt strings. The error is Script parse error: Unexpected token. Escape the backticks or use single quotes in prompt text. Also, the task output file is one JSON object with keys summary/agentCount/logs/result. Use json.load(f)['result'] instead of searching the text for an array start.