---
title: "ImprovePromptForAgent"
method: POST
path: "/gitpod.v1.AgentService/ImprovePromptForAgent"
tags: ["gitpod.v1.AgentService"]
---

# ImprovePromptForAgent

`POST /gitpod.v1.AgentService/ImprovePromptForAgent`

Improves an agent's prompt.

 Use this method to:
 - Enhance the agent's understanding of the user's request
 - Refine the agent's response to be more accurate and relevant

## Request body

- GitpodV1ImprovePromptForAgentRequest
  - `agentId` string, uuid
  - `prompt` string

## Response `200`

Success

- GitpodV1ImprovePromptForAgentResponse
  - `improvedPrompt` string

## Other responses

- `default` — Error

## Changes

> 18 revisions in range; 1 could not be searched.

- **2025-06-10** `ca9a49ac7fbb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.AgentService/ImprovePromptForAgent/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
