get_entity
Fetch a specific class, slot, enum, prefix, or import from a LinkML schema file at a given commit, using the workspace and entity name to locate it.
Instructions
Fetch one LinkML entity from a schema file at a specific commit. entity_type must be class, slot, enum, prefix, or import.
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": {
"workspace_id": "<workspace_id>",
"commit_id": "<commit_id>",
"entity_type": "<entity_type>",
"name": "<name>"
},
"name": "get_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Entity name to fetch. | |
| path | No | Relative schema path. Defaults to schema.yaml. | schema.yaml |
| commit_id | Yes | Git commit id to inspect. | |
| entity_type | Yes | ||
| workspace_id | Yes | Workspace id returned by init_workspace. |