# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apolo.us/index/apolo-flow-reference/modules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
