Script Commands
getScripts
Gets a list of scripts available in the scripts library. If no arguments are provided, all available scripts are returned.
getScriptCode
Gets the code of a specific script in the script library.
getScriptMetadata
Gets the full definition of a specific script in the scripts library.
getScriptExecutionResults
Retrieves the results of a script execution action.
getScriptExecutionResultFiles
Retrieves the files retrieved from a specific endpoint after running a script. Returns a single zip file entry; no context output.
Outputs
There are no outputs for this command.
getScriptExecutionStatus
Retrieves the status of a script execution action.
runScriptExecuteCommands
Executes shell commands (bash/native or PowerShell) on selected endpoints. Use command_type=powershell for Windows PowerShell commands. Results are returned in the Standard Output field.
Note: This is a polling command.
runScriptFileExists
Checks whether one or more files exist on selected endpoints. Results are returned in the Command Output field (true if exists, false if not found).
Note: This is a polling command.
runScriptDeleteFile
Deletes one or more files by path on selected endpoints. Results are returned in the Command Output field (true if deleted, false if not found).
Note: This is a polling command.
runScriptKillProcess
Kills one or more running processes by name on selected endpoints. Results are returned in the Standard Output field (e.g., 'Processes with name X found: 1 killed: 1').
Note: This is a polling command.
runSnippetCodeScript
Executes arbitrary Python code on selected endpoints. Use this for quick ad-hoc Python execution without needing a pre-built script. Results are returned in the Command Output field.
Note: This is a polling command.
scriptRun
Runs any script from the XDR script library by UID with custom parameters. Use getScripts to find available scripts and their UIDs. Results vary by script and are returned in Standard Output or Command Output.
Last updated
Was this helpful?
