---
title: "OSCall"
---
Executes an OtterScript Script stored in a raft.
OSCall(
Name: <text>,
[Parameters: <%(key1: value1, ...)>],
[Variables: <%(key1: value1, ...)>],
[OutputVariables: <@(text)>]
);
This operation may be prefixed with Core::
, although this is a built-in namespace and isn't really necessary.
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
☆ Name (default) | text | Name | The name of the script asset. This argument is required. |
Parameters | %(key1: value1, ...) | Parameters | |
Variables | %(key1: value1, ...) | Variables | Specify parameters to pass in to the script using a map. For example: %(param1: $SomeVariable, param2: @(list,of,items)). |
Output variables | @(text) | OutputVariables | Specify variables to capture and set in the calling scope using a list. For example: @(filePath,errorMessage). |
Note: Runtime variables you've defined before executing an Invoke operation will not be visible to the invoked script, and variables that you set within the invoked script will not be available.