set_caps_lock
Sets CAPS LOCK on a BBC Micro to the requested state, checking current state and tapping only when necessary, then returns the resulting state.
Instructions
Set CAPS LOCK to a specific state, tapping only if needed.
Reads &025A to learn the current MOS CAPS LOCK state, taps
key 135 once iff the current state differs from on. Returns
the resulting state and whether a tap was issued, so callers
can assert the final state without a follow-up read_memory.
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": {
"session_id": "<session_id>",
"on": "<on>"
},
"name": "set_caps_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||