---
title: "Search reusable scripts"
method: POST
path: "/api/scripts/search"
tags: ["Scripts"]
---

# Search reusable scripts

`POST /api/scripts/search`

Phase 3 search is substring-only over script name and metadata.

## Request body

- object
  - `query` string
  - `scope` 'global' | 'agent'
  - `limit` integer

## Response `200`

Matching scripts

## Other responses

- `400` — Validation error

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
