get_cpu
Retrieve total and per-core CPU usage, clock, interrupt and context-switch rates, processor name and topology; optionally trace which threads and processes ran on each core for a set number of seconds.
Instructions
CPU: total and per logical processor (user, kernel, DPC, interrupt, clock), interrupt and context switch rates, the processor's name and topology. With trace_seconds > 0, also who ran on each core (threads and processes with their share), from a context switch trace.
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_cpu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_seconds | No | Seconds to trace before answering (0 to 30, default 0): turns on the trace that tells who uses the resource, which costs some CPU while it runs and stops by itself afterwards. |