Edit function code
function_replaceReplace exact, unique snippets of an edge function. Copy old_str from function_get, using only the text after the TAB on each line. The whole function is typechecked once and saved only if it passes; changes that compile only together go in one call as edits. Supply either old_str and new_str or 1-50 edits, applied in order.
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": {
"name": "<name>",
"explanation": "<explanation>",
"account": "<account>"
},
"name": "function_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name | |
| edits | No | ||
| account | Yes | Account (app) UUID; call account_list to find it | |
| new_str | No | Replacement source text | |
| old_str | No | Exact, unique source text to replace | |
| explanation | Yes | Why you are making this call, in one sentence for the user. |