> Dea 0.9.9 documentation.
> Canonical page: https://dea.dardanica.app/docs/reference/tools/set-headers/
> Documentation index: https://dea.dardanica.app/llms.txt

# set_headers

Add request headers to everything this tab sends from now on (page loads, scripts, API calls): a staging auth header, a feature flag, or the header a security program asks testers to send. headers is {Name: "value"}; null removes one. host limits them to one site and its subdomains (recommended, so third-party hosts never see them). clear removes all first. Call with no arguments to list the tab's headers. They last until removed or the tab closes; other tabs are unchanged. User-Agent and client hints belong to set_device.

## Example

Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.


```json
{
  "headers": {
    "X-Feature-Preview": "on"
  },
  "host": "staging.example.com"
}
```


## Result

Returns the headers this tab now adds to its requests, each with the host it is limited to. They apply from the next request and last until removed or the tab closes.

Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `headers` | object | No | Header names and values; null removes that header |
| `host` | string | No | Only send to this hostname and its subdomains, e.g. example.com |
| `clear` | boolean | No | Remove this tab's headers before applying |
| `tab` | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |


## Full input schema

The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.


```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "headers": {
      "description": "Header names and values; null removes that header",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "host": {
      "description": "Only send to this hostname and its subdomains, e.g. example.com",
      "type": "string"
    },
    "clear": {
      "description": "Remove this tab's headers before applying",
      "type": "boolean"
    },
    "tab": {
      "description": "Tab name or id in your workspace; does not change the visible tab.",
      "type": "string",
      "minLength": 1
    }
  },
  "additionalProperties": false
}
```


## Related documentation

[Reference conventions](https://dea.dardanica.app/docs/reference/) · [Agent operating guide](https://dea.dardanica.app/docs/agents/) · [Troubleshooting](https://dea.dardanica.app/docs/troubleshooting/)
