MC Toolkit / Commands / Advanced Command Builder — Control & Debug / Return Command Generator
Return Command Generator
Build a /return command for Minecraft data pack functions — return a value, return fail, or return the result of running another command.
2 argument paths · Minecraft 26.3 · from Mojang's own command tree
/return fail/return <value>
Run these from an operator’s chat, a command block, or a function file. Stopwatch and Fetchprofile are newer commands — check availability on your Minecraft version.