ZAP API — script
ZAP API — script. 24 operations. Lead operation: script. Self-contained Naftiko capability covering one Owasp Zap business surface.
What You Can Do
MCP Tools
clears-global-custom-variable
Clears a global custom variable.
clears-global-variable-given-key
Clears the global variable with the given key.
clears-global-variables
Clears the global variables.
clears-script-custom-variable
Clears a script custom variable.
clears-variable-given-key-given
Clears the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.
clears-variables-given-script-returns
Clears the variables of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.
disables-script-given-name
Disables the script with the given name
enables-script-given-name
Enables the script with the given name
loads-script-zap-given-local
Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description, and a charset name to read the script (the charset name is required if the script is not in UTF-8, for example, in ISO-8
removes-script-given-name
Removes the script with the given name
runs-stand-alone-script-given
Runs the stand alone script with the given name
sets-value-global-variable-given
Sets the value of the global variable with the given key.
sets-value-variable-given-key
Sets the value of the variable with the given key of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.
gets-value-string-representation-global
Gets the value (string representation) of a global custom variable. Returns an API error (DOES_NOT_EXIST) if no value was previously set.
gets-all-global-custom-variables
Gets all the global custom variables (key/value pairs, the value is the string representation).
gets-value-global-variable-given
Gets the value of the global variable with the given key. Returns an API error (DOES_NOT_EXIST) if no value was previously set.
gets-all-global-variables-key
Gets all the global variables (key/value pairs).
lists-script-engines-available
Lists the script engines available
lists-scripts-available-its-engine
Lists the scripts available, with its engine, name, description, type and error state.
lists-script-types-available
Lists the script types available.
gets-value-string-representation-custom
Gets the value (string representation) of a custom variable. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.
gets-all-custom-variables-key
Gets all the custom variables (key/value pairs, the value is the string representation) of a script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.
gets-value-variable-given-key
Gets the value of the variable with the given key for the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists or if no value was previously set.
gets-all-variables-key-value
Gets all the variables (key/value pairs) of the given script. Returns an API error (DOES_NOT_EXIST) if no script with the given name exists.