---
title: "StopServerToolsWhenStepCountIs"
---

Stop after the agent loop has executed this many steps.


## Fields

| Field                                                                                                | Type                                                                                                 | Required                                                                                             | Description                                                                                          |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `step_count`                                                                                         | *int*                                                                                                | :heavy_check_mark:                                                                                   | N/A                                                                                                  |
| `type`                                                                                               | [components.StopServerToolsWhenStepCountIsType](../components/stopservertoolswhenstepcountistype.mdx) | :heavy_check_mark:                                                                                   | N/A                                                                                                  |