Ask to pick a folder
ask_for_folderOpens a native macOS folder picker so users can choose a directory; waits for their selection or a timeout, then returns the result.
Instructions
Let the user pick a folder in the system's folder picker. It waits until they answer, or the time runs out.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ask_for_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | The folder the picker opens in. | |
| prompt | No | What the picker 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 |
|---|---|---|---|
| paths | Yes | The paths picked. Empty when the user cancelled, or didn't answer in time. |