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

# Save Markdown Output • AI Agent SDK

> save_markdown_output: Save content as markdown file with proper formatting.

# save\_markdown\_output

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

> This is a method of the [**ContextAgent**](../classes/ContextAgent) class in the [**context\_agent**](../modules/context_agent) module.

Save content as markdown file with proper formatting.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def save_markdown_output(content: str, filename: str, section_title: str) -> Any
```

## Parameters

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

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

<ParamField query="section_title" type="str" required={false} default="'Output'">
  No description available.
</ParamField>

### Returns

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

## Uses

* `strftime`
* `datetime.now`
* `f.write`
* `log_debug`

## Used By

* [`ContextAgent.save_comprehensive_session_report`](../functions/ContextAgent-save_comprehensive_session_report)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/context_agent.py#L276">
  `praisonaiagents/agent/context_agent.py` at line 276
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Output Concept" icon="file-export" href="/docs/concepts/output" />

  <Card title="Output Configuration" icon="gear" href="/docs/configuration/output-config" />

  <Card title="Save Output" icon="floppy-disk" href="/docs/features/save-output" />
</CardGroup>
