---
title: "Step Environment"
method: POST
path: "/env/step"
tags: ["Environment"]
---

# Step Environment

`POST /env/step`

在环境中执行工具调用步骤（支持流式和非流式）

## Request body

- EnvStepRequest — 执行步骤请求（工具调用）
  - `session_id` string, required
  - `tool_name` string, required
  - `tool_args` object
  - `env_vars` object, nullable
  - `stream` boolean
  - `request_id` string, nullable
  - `task_id` string, nullable
  - `user_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stainless-api/apis/agentlin-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/agentlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/agentlin-api/revisions/be7769091980/schema)
