> For the complete documentation index, see [llms.txt](https://docs.apolo.us/index/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apolo.us/index/apolo-flow-reference/modules.md).

# Modules

Modules are simillar to [actions](https://github.com/neuro-inc/apolo-flow/blob/master/reference/broken-reference/README.md), but have the following differences:

* Only local files (`ws:` scheme) are supported. Modules located on GitHub are forbidden.
* Module content has access to global workflow defaults. The default `env/volumes/preset` is inherited and expressions can access top-level contexts such as `flow`.

Calling a module is similar to calling an action, except the `module` property is used instead of the `action` property.

## Live module call

```yaml
jobs:
  test:
    module: ws:live-module
    args:
      arg1: val 1
```

## Batch module call

```yaml
tasks:
  - id: test
    module: ws:batch-module
    args:
      arg1: val 1
```
