---
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-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
