agent_functions_get_code
Read one Code function's full editable definition by its ID from agent_functions_list: name, description, instruction, active state, language, source, input schema and saved tests. Call it before agent_functions_update_code, which needs the complete definition back; to only check the tests use agent_functions_run_tests. HTTP functions have no code to read.
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": {
"functionId": "<functionId>"
},
"name": "agent_functions_get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functionId | Yes | Agent Function ID from agent_functions_list. |