execute
Execute Python code against YNAB's read and write APIs to query budgets, transactions, and account balances or create new transactions.
Instructions
Execute a Python snippet against the gated ynab.read/ynab.write Code Mode API.
Enabled by default. Mutating calls require ``code_mode_mutations_enabled`` preference
and must use ``ynab.write.*``; eval dry-run mode is the explicit exception. The snippet
is treated as the body of an async function:
``await ynab.read.get_budgets()``, ``return`` directly.
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": {
"code": "<code>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |