Get a code example
get_code_exampleFetches a ready-to-use code snippet for a chosen platform and task, such as listing exercises, playing video, generating workouts, handling errors, or proxying API keys.
Instructions
A working snippet for a platform and task: listing and paging exercises, playing the looping MP4 and refreshing its signed link, the workout generator, error and rate-limit handling, or a backend proxy that keeps your key off the device. Uses one request.
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": {
"platform": "<platform>",
"topic": "<topic>"
},
"name": "get_code_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| platform | Yes |