# mount

#### `mount`: Mount Storage Directory

Mounts a directory as the root storage location for an agent.

```python
def mount(
    agent_name: str, 
    root_dir: str,
    base_url: str = aios_kernel_url
) -> StorageResponse
```

**Parameters:**

* `agent_name`: Identifier for the agent making the request
* `root_dir`: Directory path to mount as storage root
* `base_url`: API endpoint URL (default: configured AIOS kernel URL)

**Returns:**

* `StorageResponse` object containing operation result

**Example:**

```python
# Mount a personal storage directory for the agent
response = mount(
    "research_agent",
    "/data/research_projects"
)

print(response["response"]["response_message"])
```


---

# 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.aios.foundation/aios-docs/aios-agent-sdk/storage-api/mount.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.
