Get FTC sample OpMode source
get_sampleObtain the complete Java source of any official FTC sample OpMode by name. Use this to access sample code directly from the FTC SDK.
Instructions
Return the full Java source of an official FTC sample OpMode by name (from list_samples).
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>"
},
"name": "get_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Sample name, e.g. BasicOmniOpMode_Linear |