import_secrets_from_file
Import key-value pairs from a .env-style file as secrets, using a regex name pattern to filter keys, an optional prefix for secret names, and an overwrite flag to update existing secrets.
Instructions
Reads a .env-style file (KEY=VALUE per line) and imports each key as a secret. name_pattern (regex) filters which keys get imported; prefix is prepended to the created secret name; overwrite controls whether existing secrets get updated.
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": {
"source_path": "<source_path>"
},
"name": "import_secrets_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | ||
| overwrite | No | ||
| source_path | Yes | ||
| name_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |