| 1 | using System.Text.Json; |
| 2 | using System.Text.Json.Serialization; |
| 3 | |
| 4 | namespace AgentClientProtocol; |
| 5 | |
| 6 | public record CreateTerminalRequest |
| 7 | { |
| 8 | [JsonPropertyName("_meta")] |
| 9 | public JsonElement? Meta { get; init; } |
| 10 | |
| 11 | [JsonPropertyName("sessionId")] |
| 12 | public required string SessionId { get; init; } |
| 13 | |
| 14 | [JsonPropertyName("command")] |
| 15 | public required string Command { get; init; } |
| 16 | |
| 17 | [JsonPropertyName("args")] |
| 18 | public string[] Args { get; init; } = []; |
| 19 | |
| 20 | [JsonPropertyName("cwd")] |
| 21 | public string? Cwd { get; init; } |
| 22 | |
| 23 | [JsonPropertyName("env")] |
| 24 | public EnvVariable[] Env { get; init; } = []; |
| 25 | |
| 26 | [JsonPropertyName("outputByteLimit")] |
| 27 | public ulong? OutputByteLimit { get; init; } |
| 28 | } |
| 29 | |
View only · write via MCP/CIDE