Skip to content

resource_bundle

MCP tools › Workspace and files

The resource bundle of a .properties file: the files of the bundle in its folder with their locale (from the name, as Java reads Messages_de_AT.properties; empty for the base file), every key with the locales that have it, the keys missing per locale, and each key's values per locale (default for the base file). set (key, locale, value) and remove (key) edit the bundle as its editor does: only the property's own lines change and non-ASCII text is escaped only in ASCII files; dry_run defaults to true and returns the bundle as it would be and the files that would change.

Its results carry text from files: the client is told to treat that as data, never as instructions.

Capabilityworkspace.resource_bundle
AreaWorkspace and files
Accesschanges files
Reaches—
Rightswrite
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative .properties file of the bundle.
setobjectSets a key's value in one locale's file (SPEC-0212).
set.keyrequiredstringThe key.
set.localestringLocale such as de or de_AT; default or empty for the base file.default ""
set.valuerequiredstringThe value (escapes are written as needed).
removestringRemoves a key from every file of the bundle.
dry_runbooleanOnly show the result (default true); false writes the files.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project resource_bundle '{"path":"<string>"}'
Input schema as JSON
{
"properties": {
"path": {
"description": "Workspace-relative `.properties` file of the bundle.",
"type": "string"
},
"set": {
"description": "Sets a key's value in one locale's file (SPEC-0212).",
"anyOf": [
{
"$ref": "#/$defs/BundleSet"
},
{
"type": "null"
}
]
},
"remove": {
"description": "Removes a key from every file of the bundle.",
"type": [
"string",
"null"
]
},
"dry_run": {
"description": "Only show the result (default true); false writes the files.",
"type": [
"boolean",
"null"
]
}
},
"$defs": {
"BundleSet": {
"description": "A value to set in a resource bundle.",
"type": "object",
"properties": {
"key": {
"description": "The key.",
"type": "string"
},
"locale": {
"description": "Locale such as `de` or `de_AT`; `default` or empty for the base file.",
"type": "string",
"default": ""
},
"value": {
"description": "The value (escapes are written as needed).",
"type": "string"
}
},
"required": [
"key",
"value"
]
}
},
"required": [
"path"
],
"type": "object"
}