# Prepare Webpage Content for Agent Tools

**Use case:** 

Convert webpages into Markdown for agent tools, MCP workflows, vector databases, and internal documentation.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://docs.apify.com/academy"
    }
  ],
  "renderJavaScript": false,
  "contentScope": "mainContent",
  "removeSections": [
    "navigation",
    "header",
    "footer",
    "sidebar",
    "ads",
    "cookieBanners",
    "comments",
    "scriptsAndStyles"
  ],
  "headingStyle": "atx"
}
```

## Output

```json
{
  "sourceUrl": {
    "label": "Source URL",
    "format": "string"
  },
  "title": {
    "label": "Page title",
    "format": "string"
  },
  "markdownLength": {
    "label": "Markdown length",
    "format": "integer"
  },
  "markdown": {
    "label": "Markdown",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Markdownify MCP Server](https://apify.com/maximedupre/markdownify-mcp-server) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/markdownify-mcp-server) to learn more, explore other use cases, and run it yourself.