# `ACPex.Schema.Client.FsWriteTextFileRequest`
[🔗](https://github.com/lostbean/acpex/blob/v0.1.1/lib/acpex/schema/client/fs_write_text_file_request.ex#L1)

Request from agent to write a text file.

Sent by the agent to request the client to write content to a file on
the local filesystem. This is a bidirectional request (agent → client).

## Required Fields

  * `session_id` - The session identifier (string)
  * `path` - The file path to write (string)
  * `content` - The content to write (string)

## Optional Fields

  * `meta` - Additional metadata (map)

## Example

    %ACPex.Schema.Client.FsWriteTextFileRequest{
      session_id: "session-123",
      path: "/path/to/file.txt",
      content: "New file contents"
    }

## JSON Representation

    {
      "sessionId": "session-123",
      "path": "/path/to/file.txt",
      "content": "New file contents"
    }

# `t`

```elixir
@type t() :: %ACPex.Schema.Client.FsWriteTextFileRequest{
  content: String.t(),
  meta: map() | nil,
  path: String.t(),
  session_id: String.t()
}
```

# `changeset`

```elixir
@spec changeset(t(), map()) :: Ecto.Changeset.t()
```

Creates a changeset for validation.

## Required Fields

  * `session_id` - Must be present
  * `path` - Must be present
  * `content` - Must be present

---

*Consult [api-reference.md](api-reference.md) for complete listing*
