scripts_get_script_code
Retrieve the code of a specific script from the Cortex XSIAM script library by supplying its unique identifier.
Instructions
Get Script Code
Get the code of a specific script in the script library.
Required license: Cortex XSIAM Premium or Cortex XSIAM Enterprise or Cortex XSIAM Enterprise Plus
[POST /public_api/v1/scripts/get_script_code] · Script execution
Example request body:
{
"request_data": {
"script_uid": "<unique ID>"
}
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_data": "<request_data>"
},
"name": "scripts_get_script_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_data | Yes | A dictionary containing the API request fields. |