get_tempo
Retrieve the current BPM and time signature from REAPER projects to synchronize audio editing and playback settings.
Instructions
Return the current BPM and time signature.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_tempo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/reaper_mcp/server.py:608-614 (handler)The MCP tool handler for "get_tempo", which wraps the adapter call.
@mcp.tool() def get_tempo() -> dict[str, Any]: """Return the current BPM and time signature.""" try: return _wrap(adapter.get_tempo()) except Exception as exc: return _err(exc) - src/reaper_mcp/reaper_adapter.py:356-357 (handler)The adapter method that sends the "get_tempo" command to the bridge client.
def get_tempo(self) -> dict[str, Any]: return self._client.call("get_tempo")