59 lines
2.1 KiB
JSON
59 lines
2.1 KiB
JSON
[
|
|
{
|
|
"name": "get_all_keys",
|
|
"description": "Get keys from a JSON file. If keypath is provided, get keys under that path. Otherwise, get top-level keys.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"file_path": {
|
|
"type": "string",
|
|
"description": "Path to the JSON file"
|
|
},
|
|
"key_path": {
|
|
"type": "string",
|
|
"description": "Optional key path to get keys from (e.g., 'user.address' or 'items[0]')"
|
|
}
|
|
},
|
|
"required": ["file_path"]
|
|
}
|
|
},
|
|
{
|
|
"name": "get_value",
|
|
"description": "Get value of a specific key from a JSON file using dot notation (e.g., 'user.name' or 'items[0].price')",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"file_path": {
|
|
"type": "string",
|
|
"description": "Path to the JSON file"
|
|
},
|
|
"key_path": {
|
|
"type": "string",
|
|
"description": "Path to the key using dot notation (e.g., 'user.name' or 'items[0].price')"
|
|
}
|
|
},
|
|
"required": ["file_path", "key_path"]
|
|
}
|
|
},
|
|
{
|
|
"name": "get_multiple_values",
|
|
"description": "Get values of multiple keys from a JSON file using dot notation (e.g., ['user.name', 'items[0].price'])",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"file_path": {
|
|
"type": "string",
|
|
"description": "Path to the JSON file"
|
|
},
|
|
"key_paths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "Array of key paths using dot notation (e.g., ['user.name', 'items[0].price'])"
|
|
}
|
|
},
|
|
"required": ["file_path", "key_paths"]
|
|
}
|
|
}
|
|
] |