> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Write File • AI Agent SDK

> write_file: Protocol alias for :meth:`write_skill_file`.

# write\_file

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillManager**](../classes/SkillManager) class in the [**manager**](../modules/manager) module.

Protocol alias for :meth:`write_skill_file`.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def write_file(name: str, file_path: str, file_content: str, propose: Optional[bool]) -> dict
```

## Parameters

<ParamField query="name" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="file_path" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="file_content" type="str" required={true}>
  No description available.
</ParamField>

<ParamField query="propose" type="Optional[bool]" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="dict">
  The result of the operation.
</ResponseField>

## Uses

* `write_skill_file`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L1691">
  `praisonaiagents/skills/manager.py` at line 1691
</Card>
