---
title: "Execute Script from a Node"
description: "Execute scripts from nodes seamlessly; customize with JSON Schema for precise control. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/behaviors/actions/execute-script-from-node"
---

# Execute Script from a Node

ID: `executeScriptNode`

Executes a script attachment of a node.

The configuration for this action is described using JSON Schema like this:

```
{
    "scriptNodeId": "d904227f8628b15d4763"
}
```

| Property | Required | Description |
| --- | --- | --- |
| scriptNodeId | yes | The node id of the script document |
| scriptAttachmentId | no | The id of the attachment where the script locates |
| methodName | no | The method name of the script |
| args | no | The arguments for the method in the script |
