Get Db Credentials
getDbCredentialsFetch database credentials from a running container's environment, using the live pod configuration as the authoritative source.
Instructions
Read from the running pod's resolved environment at call time, so the container is the source of truth rather than the template. component is a compose service running a database.
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": {
"workspaceSlug": "<workspaceSlug>",
"appSlug": "<appSlug>",
"component": "<component>"
},
"name": "getDbCredentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| region | No | ||
| appSlug | Yes | ||
| component | Yes | ||
| workspaceSlug | Yes |