# map

**Identifier:** `firecrawl_map`

**Provider:** [Firecrawl](https://kirha.com/providers/firecrawl.md)

Maps one or multiple websites (max 5) to discover all available URLs. Returns an ordered list of URLs discovered from the website.

## Run it with the CLI

```bash
kirha tools run firecrawl_map \
  --input '{
    "urls": [
      "<urls>"
    ]
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "firecrawl_map",
  "input": {
    "urls": [
      "<urls>"
    ]
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "limit": {
      "default": 100,
      "description": "Maximum number of links to return per URL (300 links max in total, split across the URLs)",
      "maximum": 300,
      "minimum": 1,
      "type": "number"
    },
    "search": {
      "description": "Filter URLs containing this search term (results ordered by relevance)",
      "type": "string"
    },
    "urls": {
      "description": "List of URLs to map (max 5, processed in parallel). Results are returned in the same order as the input URLs for tool composition.",
      "items": {
        "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "urls"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "results": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "string"
          },
          "links": {
            "description": "Discovered pages",
            "items": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "success": {
            "type": "boolean"
          },
          "url": {
            "description": "The starting URL that was mapped",
            "type": "string"
          }
        },
        "required": [
          "url",
          "success"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "results"
  ],
  "type": "object"
}
```

-----

[All Firecrawl tools](https://kirha.com/providers/firecrawl.md) · [< Back to tools list](https://kirha.com/tools.md)