Ler um item de qualquer tipo
glpi_obter_itemRetrieves any GLPI item by item type and ID, with options to expand list names, include related data such as logs or documents, and convert HTML fields to readable text.
Instructions
Lê um item de qualquer tipo pelo id. Para chamados prefira glpi_ver_chamado.
itemtype: classe do GLPI, como Ticket, User, Group, Document, KnowbaseItem, Problem,
Change, ITILFollowup, TicketTask, ITILSolution, TicketValidation, Computer.
expandir_nomes: troca ids de listas (categoria, local, usuário) pelos nomes.
incluir: dados ligados, como ["logs"] para o histórico e ["documents"] para anexos.
nomes_amigaveis: chaves estrangeiras para receber o id E o nome (em _keys_names).
texto_legivel: converte o HTML dos campos de texto em texto simples.
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": {
"itemtype": "<itemtype>",
"id": "<id>"
},
"name": "glpi_obter_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| incluir | No | ||
| itemtype | Yes | ||
| texto_legivel | No | ||
| expandir_nomes | No | ||
| nomes_amigaveis | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||