r_execute
Run R code and return output for data analysis or quick tests. Execute commands in a specified working directory.
Instructions
Execute R code and return the output. Useful for running R commands, data analysis, or quick tests.
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": "r_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The R code to execute | |
| working_dir | No | Optional working directory for execution |