write_memory
Write data to MCU memory at a specified address. Supports hexadecimal or plain text input for direct memory manipulation.
Instructions
写入 MCU 内存
向目标 MCU 的指定地址写入数据。
Args: address: 起始地址 (如 0x08000000) data: 要写入的数据(十六进制字符串或普通字符串) is_hex: 是否为十六进制数据,默认 True
Returns: 写入结果的 JSON 字符串
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": {
"address": "<address>",
"data": "<data>"
},
"name": "write_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| data | Yes | ||
| is_hex | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |