> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/scriptcommanddata.md).

# ScriptCommandData

The **ScriptCommandData** object is passed to the script-defined entry points for any [internal commands](/directory-opus/manual/scripting/example_scripts/adding_a_new_internal_command.md) added by a [script add-in](/directory-opus/manual/scripting/script_add-ins.md). The method name for these events is defined by the script itself, but generically it's referred to as [**OnScriptCommand**](/directory-opus/manual/reference/scripting_reference/scripting_events/onscriptcommand.md).

| Property Name | Return Type                                                                                         | Description                                                                                                                                                                                                                                                                                                |
| ------------- | --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| cmdline       | *string*                                                                                            | This returns the original command line that invoked the command. If any arguments were provided on the command line they are available in parsed form from the **func.args** property.                                                                                                                     |
| fayt          | <p><em>string</em><br>or <em>bool</em></p>                                                          | If this is a string, it means this is being called as a [FAYT extension](/directory-opus/manual/reference/scripting_reference/scripting_objects/scriptfaytcommanddata.md) command. If set to **False** it's a regular command.                                                                             |
| func          | *object:*[**Func**](/directory-opus/manual/reference/scripting_reference/scripting_objects/func.md) | Returns a [**Func**](/directory-opus/manual/reference/scripting_reference/scripting_objects/func.md) object relating to this function. This provides access to information about the function's environment (source and destination tabs, etc) as well as any variables and parsed command line arguments. |
