# set_evergreen

Source: https://heyeveryone.ai/docs/mcp/set_evergreen

> Mark published content evergreen (`evergreen: true`) or not, and/or set the workspace's `minGapDays` (7–365, default 30; owners only). When a channel's queue has a free slot in the next 48 hours and nothing else is scheduled there, a copy of an evergreen item last posted or proposed at least minGapDays ago is proposed for that slot: a person confirms it in Updates unless you are an agent allowed to publish on your own. Platforms that refuse the same text twice (X) are skipped.

Mark published content evergreen (`evergreen: true`) or not, and/or set the workspace's `minGapDays` (7–365, default 30; owners only). When a channel's queue has a free slot in the next 48 hours and nothing else is scheduled there, a copy of an evergreen item last posted or proposed at least minGapDays ago is proposed for that slot: a person confirms it in Updates unless you are an agent allowed to publish on your own. Platforms that refuse the same text twice (X) are skipped.

A human confirms the result in heyeveryone's Updates unless a workspace owner put this agent on Autopilot for the post's channel (see whoami).

## Access and cost

- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: true
- Accepts idempotency key: false

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "pieceId": {
      "format": "uuid",
      "type": "string"
    },
    "evergreen": {
      "type": "boolean"
    },
    "minGapDays": {
      "maximum": 365,
      "minimum": 7,
      "type": "integer"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "minGapDays": {
      "type": "integer"
    },
    "item": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "pieceId": {
              "format": "uuid",
              "type": "string"
            },
            "on": {
              "type": "boolean"
            },
            "published": {
              "type": "boolean"
            },
            "minGapDays": {
              "type": "integer"
            },
            "lastQueuedAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "eligibleFrom": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "skippedChannels": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "channelAccountId": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "channelAccountId",
                  "reason"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "pieceId",
            "on",
            "published",
            "minGapDays",
            "lastQueuedAt",
            "eligibleFrom",
            "skippedChannels"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "minGapDays",
    "item"
  ],
  "type": "object"
}
```

## Errors

```json
[
  "not_published"
]
```

## Annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Mark content evergreen"
}
```
