update_block_attributes
Edit AutoCAD block attributes by handle or filter to fill or correct TAG, TYPE, LINE, and similar fields. Preview changes with dry_run, then confirm to apply and undo in one step.
Instructions
Altera atributos de UM bloco (handle) ou de vários (filter). Sobrescrita exige confirm=true.
QUANDO USAR: corrigir/preencher TAG, TIPO, LINHA etc. FLUXO SEGURO: 1) dry_run=true para ver o antes→depois; 2) repetir com confirm=true. Sem confirm, se houver sobrescrita de valor existente ou mais de 1 bloco afetado, retorna ok=false com a prévia. Um único Ctrl+Z desfaz tudo. Parâmetros: attributes ({TAG: novo valor}; '' limpa), handle (string hex) OU filter ({"block_name": "SUP-", "layer": "SUPORTES", "where": {"LINHA": "10-P-1001"}}), dry_run, confirm. Exemplo: update_block_attributes({"TIPO": "GUIA"}, filter={"block_name": "SUP-", "where": {"TIPO": "SHOE"}}, dry_run=true).
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": {
"attributes": "<attributes>"
},
"name": "update_block_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | ||
| handle | No | ||
| confirm | No | ||
| dry_run | No | ||
| attributes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||