# `Phantom.Prompt.Argument`
[🔗](https://github.com/dbernheisel/phantom_mcp/blob/main/lib/phantom/prompt_argument.ex#L1)

# `json`

```elixir
@type json() :: %{name: String.t(), description: String.t(), required: boolean()}
```

# `t`

```elixir
@type t() :: %Phantom.Prompt.Argument{
  description: String.t(),
  name: String.t(),
  required: boolean()
}
```

# `build`

```elixir
@spec build(map() | Keyword.t()) :: t()
```

Build a prompt argument spec

When building a prompt with `Phantom.Prompt.build/1`, arguments will
be built automatically.

# `to_json`

```elixir
@spec to_json(t()) :: json()
```

Represent a Prompt argument spec as json when listing the available prompts to clients.

---

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