---
# @generated by sylphx-gen 0.1.0 from contracts@3118f36f16f799965338811e17ed3a9f565a9f136b14c95e9c94a1e21d42ea3e. Do not edit.
title: "List agents"
description: "`agents.agents.list` (GET /v1/{parent}/agents): Lists agents."
type: reference
product: agents
summary: "Lists agents."
updated: 2026-09-28
nav: false
---

Lists agents.

**Not available yet.** Sylphx Agents is declared in the registry but no backend serves it: every call answers `501` with the problem code `UNIMPLEMENTED`.

- **Path** `GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agents`
- **Scope** `agents:read`
- **Effect** `read` — nothing is written.
- **Collection** [agents](/docs/api/agents)
- **Query** `page_size`, `page_token`, `filter`, `order_by`
- **Pagination** the answer carries `agents` and, when there is more, `next_page_token`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | The parent to list in. Required. |
| `page_size` | `int32` | At most this many; default 50, clamped to 1000. |
| `page_token` | `string` | `next_page_token` of the previous page. |
| `filter` | `string` | AIP-160 filter over labels and filterable fields. |
| `order_by` | `string` | AIP-132 ordering over filterable fields. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `agents` | `Agent[]` | The page. |
| `next_page_token` | `string` | The token of the next page; empty on the last page. |

### Agent

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | `orgs/{org}/projects/{project}/envs/{env}/agents/{agent}`. |
| `uid` | `string` | `agt_<cell><ulid>`; never reused. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `spec` | `AgentSpec` | Desired state: the definition the next version takes. Required. |
| `status` | `AgentStatus` | Observed state. Output only. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `generation` | `int64` | Increases by one on every change to `spec`. Output only. |
| `etag` | `string` | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as `If-Match` or `etag` to make Update and Delete conditional; a mismatch fails with ABORTED / 409 `ETAG_MISMATCH`. Output only. |
| `create_time` | `timestamp` | When the Resource was created. Output only. |
| `update_time` | `timestamp` | When the Resource last changed. Output only. |
| `delete_time` | `timestamp` | Set while the Resource is being deleted. Output only. |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |
| `creator` | `string` | The principal that created the Resource. Output only. |

### AgentSpec

| Field | Type | What it is |
| --- | --- | --- |
| `model` | `string` | The exact Sylphx AI catalog id (`ai_models`), set per Agent through the API as runtime state, never code or a deployed file. Agents in the same environment may use different models; the harness never remaps this id. Required. |
| `instructions` | `string` | The system instructions, at most 256 KiB. |
| `tools` | `Tool[]` | The tools the agent may call, at most 128, each `name` once. |
| `mcp_servers` | `McpServer[]` | The MCP servers whose tools the agent may call, at most 32. |
| `skills` | `Skill[]` | Skills: instruction packs the agent loads when relevant, at most 64. |
| `memory_stores` | `string[]` | The memory stores the agent recalls from and writes to, as MemoryStore names; at most 8. |
| `tool_policy` | `ToolPolicy` | The policy every tool call passes before it runs. |
| `budget` | `AgentBudget` | Spend and time limits per turn and per session. |
| `end_user_access` | `bool` | Whether end-user session access is intended for this agent. Reserved until the backend enforces end-user ownership; all contract methods currently require a secret key. |
| `environment` | `EnvironmentSpec` | Whether sessions get a Sylphx Sandboxes environment (shell, files, browser, computer use), attached on first need and put in standby when idle. |
| `harness` | `string` | The execution harness, independent of `model`: `runtime` (default), `claude_code` or `codex`. It is part of the immutable version, not an environment-wide setting. An omitted or empty value means `runtime`. |

### AgentStatus

| Field | Type | What it is |
| --- | --- | --- |
| `observed_generation` | `int64` | The generation this status was computed from. Output only. |
| `conditions` | `Condition[]` | Ready, Reconciling, Stalled. Output only. |
| `current_version` | `string` | The newest version, which new sessions pin unless they name another. Output only. |
| `current_version_number` | `int64` | The number of the newest version, from 1. Output only. |

### Tool

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The name the model calls, unique within the agent. Required. |
| `description` | `string` | What the tool does, shown to the model; at most 4096 characters. |
| `input_schema` | `struct` | The JSON Schema of the tool's input. Built-in tools carry their own. |
| `builtin` | `BuiltinTool` | A platform tool: `shell`, `files`, `browser`, `computer`, `web_fetch`, `web_search` or `memory`. One of the `kind` group. |
| `http` | `HttpTool` | An HTTP API described by OpenAPI. One of the `kind` group. |
| `app_function` | `FunctionTool` | The app's own server code: the gateway calls it with a short-lived signed token bound to the session, turn and step. One of the `kind` group. |
| `client` | `ClientTool` | Run by the client: the app executes it and returns the result as an event (`:submitToolResult`). One of the `kind` group. |

### McpServer

| Field | Type | What it is |
| --- | --- | --- |
| `label` | `string` | The label its tools are prefixed with, unique within the agent. Required. |
| `uri` | `string` | The server's Streamable HTTP endpoint. Required. |
| `allowed_tools` | `string[]` | Only these of its tools; empty allows every tool it lists. |
| `credential` | `CredentialBinding` | The credential the gateway presents to the server. |

### Skill

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The skill's name, unique within the agent. Required. |
| `description` | `string` | When to use it, shown to the model; at most 1024 characters. Required. |
| `instructions` | `string` | The instructions it loads, at most 256 KiB. Required. |

### ToolPolicy

| Field | Type | What it is |
| --- | --- | --- |
| `default_decision` | `PolicyDecision` | The decision for a call no rule matches; default allow. One of `allow`, `deny`, `ask`. |
| `rules` | `ToolPolicyRule[]` | Rules in order; the first match decides. At most 256. |
| `approval_timeout` | `duration` | How long a call waits for a person's answer before it is denied, 1m to 7d; default 24h. |
| `egress_allow_hosts` | `string[]` | Hosts every network call of the agent's tools may reach, beyond the tools' own endpoints; `*.example.com` matches subdomains. Private and internal addresses are refused whatever this says. |

### AgentBudget

| Field | Type | What it is |
| --- | --- | --- |
| `max_steps_per_turn` | `int32` | Model and tool steps per turn, 1 to 1000; default 100. |
| `turn_timeout` | `duration` | One turn's wall-clock deadline, 10s to 24h; default 30m. |
| `max_session_spend_micros` | `int64` | Spend per session in micro-USD, models and tools together; 0 is the project's spend limit only. |

### EnvironmentSpec

| Field | Type | What it is |
| --- | --- | --- |
| `shape` | `string` | A Sylphx Sandboxes shape; empty gives sessions no environment. |
| `idle_standby` | `duration` | Put the environment in standby after this long idle, 1m to 24h; default 10m. |
| `template` | `string` | The Sandboxes image: `template:<name>` or an artifact image by digest, passed unchanged to the lease's `image` field. |
| `repo` | `RepositorySpec` | The repository to prepare inside the fresh lease, if any. |
| `egress` | `LeaseNetwork` | The lease's outbound policy, using the Sandboxes network contract. |
| `budget` | `LeaseBudget` | The lease's CPU and cost ceiling, separate from model and tool spend. |
| `ttl` | `duration` | The lease's maximum wall time, passed to Sandboxes as `ttl`. The lease is released when the session ends even if this bound has not been reached. |

### Condition

| Field | Type | What it is |
| --- | --- | --- |
| `type` | `string` | The condition type, for example `Ready`. |
| `status` | `ConditionStatus` | Whether the condition holds. One of `true`, `false`, `unknown`. |
| `observed_generation` | `int64` | The generation this observation was made against. |
| `reason` | `string` | A machine-readable UpperCamelCase reason. |
| `message` | `string` | A customer-safe human-readable message. |
| `severity` | `Severity` | How severe a FALSE condition is. One of `info`, `warning`, `error`. |
| `transition_time` | `timestamp` | When `status` last changed. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`PAGE_TOKEN_MISMATCH`](/docs/api/errors/PAGE_TOKEN_MISMATCH) — A page token was reused with different parameters.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agents" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.agents.agents.list({ parent: 'orgs/acme/projects/shop/envs/production' })
```

**Rust**

```rust
let mut req = sylphx::agents::ListAgentsRequest::default();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
let response = sx.agents().agents().list(req).await?;
```

**CLI**

```bash
sylphx agents agents list orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "agents.agents.list", "args": {"parent":"orgs/acme/projects/shop/envs/production"} }
```
