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

# SendToAgentExecution

`POST /gitpod.v1.AgentService/SendToAgentExecution`

Sends user input to an active agent run.

 This method is used to provide interactive or conversation-based input
 to an agent. The agent can respond with output blocks containing
 text, file changes, or tool usage requests.

 ### Examples

 - Send a text message to an agent:

   ```yaml
   agentExecutionId: "6fa1a3c7-fbb7-49d1-ba56-1890dc7c4c35"
   userInput:
     text:
       content: "Generate a report based on the latest logs."
   ```

## Request body

- GitpodV1SendToAgentExecutionRequest — unresolved $ref

## Response `200`

Success

- GitpodV1SendToAgentExecutionResponse

## Other responses

- `default` — Error

## Changes

- **2026-01-21** `2423c089f280` — 4 info
  - added the new optional request property `userInput/image/mimeType`
  - added the new optional request property `userInput/inputs`
  - request property `userInput/image` deprecated
  - request property `userInput/text` deprecated
- **2026-01-09** `3935e467f9c1` — 1 breaking, 2 info
  - removed `subschema #1` from the `userInput` request property `oneOf` list
  - added the new optional request property `userInput/image`
  - added `subschema #1, subschema #2` to the `userInput` request property `oneOf` list
- **2025-12-15** `d62ef4b9187c` — 2 info
  - added the new optional request property `userInput/createdAt`
  - added the new optional request property `userInput/id`
- **2025-06-10** `ca9a49ac7fbb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.AgentService/SendToAgentExecution/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/b97dcde84128/schema)
