Skip to main content

Misc functions

  • {suggestions}: Returns a list of suggestions, optionally filtered by status

    • Arguments:
      • status = ""
  • {jsonAPI}: Displays data from an API or web page

    • Arguments:
      • url = ""
      • path = ""
      • handleUnknown = "error"
      • type = "json"
    • Example result: 100
      • Using input: {jsonAPI;https://api.tomatenkuchen.com/api/stats;commands}
    • Example result: {"userId":1,"id":1,"title":"delectus aut autem","completed":false}
      • Using input: {jsonAPI;https://jsonplaceholder.typicode.com/todos/1}
  • {run}: Runs the given command. Arguments are appended to the command name. Always runs the original TomatenKuchen command, actions with the same name are ignored.

    • Arguments:
      • cmd
    • Example result: <empty>
      • Using input: {run;test}
    • Example result: ⚠️ run: Unknown command: test2
      • Using input: {run;test2}
  • {translate}: Translates a given text. It also sets {var;translateLastLanguage} to the detected language of the last translation

    • Arguments:
      • text = ""
      • language = "en"
    • Example result: Hello World!
      • Using input: {translate;Hallo Welt!}
  • {void}: Returns an empty string. Can be used for comments.

    • Example result: <empty>
  • {value}: Returns the input value

    • Arguments:
      • value = ""
    • Example result: test
      • Using input: {value;test}