Ask for a line of text
ask_textPrompts the user for a line of text in a dialog and returns their input, optionally hiding typed characters for passwords and waiting until submission or timeout.
Instructions
Ask the user for a line of text in a dialog, and wait for it. What they type comes back as the result, a password included: ask for one only when the task needs it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "ask_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The dialog's title. | |
| hidden | No | True to show dots instead of what's typed, for a password. | |
| default | No | Text the field starts with. Not a secret: other processes of the user can see it. | |
| message | Yes | What the dialog says. | |
| timeout_seconds | No | How long to wait for the user, in seconds, before closing the dialog as if it was cancelled. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text. Null when the user cancelled, or didn't answer in time. |