# regenerate_segment_asset

Regenerate a segment's primary image or video with optional overrides — the API equivalent of the editor's expert drawer. asset_type: "image" | "video" (for a video segment, "image" targets its start frame). Use a different model, override prompt sections (see get_section_template("segment_image")), or tweak settings (e.g. image quality), then re-run just this asset. Async — returns {job_id}.

Agent View of the PolicyLayer registry record for `regenerate_segment_asset`. HTML page: https://policylayer.com/tools/com-framesail-framesail/regenerate-segment-asset

## Facts

- Tool: `regenerate_segment_asset`
- Server: Framesail (`https://api.framesail.com/mcp`) — https://policylayer.com/tools/com-framesail-framesail.md
- Homepage: https://github.com/https://api.framesail.com/mcp
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 6 (3 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `model` | string | no | Model ID to render with; empty uses the job's default (see list_models("segment_image") / list_models("segment_video")) |
| `settings` | object | no | Model-specific settings (e.g. image quality, video duration); valid keys come from the model's settings_schema in list_models |
| `asset_type` | string | yes | "image" or "video"; for a video segment, "image" targets its start frame |
| `project_id` | string | yes | Project ID, as returned by create_project or list_projects |
| `segment_number` | integer | yes | 1-based segment number, as reported by get_segments |
| `editable_sections` | object | no | Per-call prompt section overrides, keyed by section name; see get_section_template("segment_image") or ("segment_video") |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "regenerate_segment_asset",
    "arguments": {
      "asset_type": "<asset_type>",
      "project_id": "<project_id>",
      "segment_number": 0
    }
  }
}
```

## Why regenerate_segment_asset is rated High

This tool executes code/external operations (image/video generation via ML models with configurable parameters). While it modifies a video project, it is not irreversible deletion (not Destructive) and not a financial transaction (not Financial).

From the tool's own definition: "The tool 'regenerates' segment assets (image or video) with 'optional overrides' and 'different model' choices, allowing the caller to modify prompts and settings, then 're-run' the asset generation."

## Use case

AI agents invoke regenerate_segment_asset to trigger actions in Framesail. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Framesail:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "regenerate_segment_asset": {
      "limits": [
        {
          "counter": "regenerate_segment_asset_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Framesail (67)

- `delete_asset` — Destructive — https://policylayer.com/tools/com-framesail-framesail/delete-asset.md
- `delete_project` — Destructive — https://policylayer.com/tools/com-framesail-framesail/delete-project.md
- `delete_style` — Destructive — https://policylayer.com/tools/com-framesail-framesail/delete-style.md
- `director_note` — Destructive — https://policylayer.com/tools/com-framesail-framesail/director-note.md
- `remove_music_track` — Destructive — https://policylayer.com/tools/com-framesail-framesail/remove-music-track.md
- `scan_script` — Destructive — https://policylayer.com/tools/com-framesail-framesail/scan-script.md
- `analyze_style` — Execute — https://policylayer.com/tools/com-framesail-framesail/analyze-style.md
- `build_scenes` — Execute — https://policylayer.com/tools/com-framesail-framesail/build-scenes.md
- `export_video` — Execute — https://policylayer.com/tools/com-framesail-framesail/export-video.md
- `await_jobs` — Read — https://policylayer.com/tools/com-framesail-framesail/await-jobs.md
- `browse_audio_library` — Read — https://policylayer.com/tools/com-framesail-framesail/browse-audio-library.md
- `get_credit_balance` — Read — https://policylayer.com/tools/com-framesail-framesail/get-credit-balance.md
- `get_pipeline_progress` — Read — https://policylayer.com/tools/com-framesail-framesail/get-pipeline-progress.md
- `get_project` — Read — https://policylayer.com/tools/com-framesail-framesail/get-project.md
- `get_script` — Read — https://policylayer.com/tools/com-framesail-framesail/get-script.md
- `get_section_template` — Read — https://policylayer.com/tools/com-framesail-framesail/get-section-template.md
- `get_segment_assets` — Read — https://policylayer.com/tools/com-framesail-framesail/get-segment-assets.md
- `get_segments` — Read — https://policylayer.com/tools/com-framesail-framesail/get-segments.md
- `get_style` — Read — https://policylayer.com/tools/com-framesail-framesail/get-style.md
- `get_video_url` — Read — https://policylayer.com/tools/com-framesail-framesail/get-video-url.md
- `get_workflow_status` — Read — https://policylayer.com/tools/com-framesail-framesail/get-workflow-status.md
- `list_assets` — Read — https://policylayer.com/tools/com-framesail-framesail/list-assets.md
- `list_channels` — Read — https://policylayer.com/tools/com-framesail-framesail/list-channels.md
- `list_models` — Read — https://policylayer.com/tools/com-framesail-framesail/list-models.md
- `list_music_tracks` — Read — https://policylayer.com/tools/com-framesail-framesail/list-music-tracks.md
- `list_projects` — Read — https://policylayer.com/tools/com-framesail-framesail/list-projects.md
- `list_provider_keys` — Read — https://policylayer.com/tools/com-framesail-framesail/list-provider-keys.md
- `list_scenes` — Read — https://policylayer.com/tools/com-framesail-framesail/list-scenes.md
- `list_style_presets` — Read — https://policylayer.com/tools/com-framesail-framesail/list-style-presets.md
- `list_styles` — Read — https://policylayer.com/tools/com-framesail-framesail/list-styles.md
- …and 37 more: https://policylayer.com/tools/com-framesail-framesail.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=com-framesail-framesail · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/com-framesail-framesail
