---
title: "List saved scripts"
method: GET
path: "/api/scripts"
tags: ["Scripts"]
---

# List saved scripts

`GET /api/scripts`

Dashboard read: lean projection without source. Scratch scripts are excluded unless includeScratch=true.

## Query parameters

- `scope` 'global' | 'agent'
- `includeScratch` 'true' | 'false'

## Response `200`

Saved scripts

- object
  - `scripts` object[], required
    - `id` string, required
    - `name` string, required
    - `scope` 'global' | 'agent', required
    - `scopeId` string, nullable, required
    - `description` string, required
    - `intent` string, required
    - `version` number, required
    - `isScratch` boolean, required
    - `typeChecked` boolean, required
    - `fsMode` 'none' | 'workspace-rw', required
    - `createdByAgentId` string, nullable, required
    - `createdAt` string, required
    - `updatedAt` string, required

## Other responses

- `400` — Validation error

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
