micropython_connection_status
Check if a MicroPython device is connected and return serial or WebREPL transport details, target, host, port, baudrate, and errors.
Instructions
現在の接続状態を返す
Returns:
ok: 成功 True
connected: 接続中なら True
transport: serial または webrepl
target: 接続時に指定したターゲット
host: WebREPL 接続時のホスト
port: 接続先ポート
baudrate: serial 接続時のボーレート
error: エラー時のメッセージ
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": "micropython_connection_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| host | Yes | ||
| port | Yes | ||
| error | Yes | ||
| target | Yes | ||
| baudrate | Yes | ||
| connected | Yes | ||
| transport | Yes |