Get the working directory's default services
komuta_get_local_service_contextGet an instruction for YOU (the agent) to read the default services for the user's current working directory yourself, from the local .komuta/config.json (exact format {"projects":{"{project_id}":{"name":"{project_name}","services":[{"id":"{service_id}","name":"{service_name}"}]}}} — a map of project id → { name, services: [{ id, name }] }, since one directory may hold several projects and several services per project, typically the same app deployed as prod + staging/dev; any other shape is treated as no config; looked up from the directory upward, like git finds .git). The file's own "name" fields already give you the saved project/service NAMEs — you do NOT need a fresh komuta_list_services/komuta_list_projects call just to label what you found; only re-resolve by name if you need to confirm the entry is still valid. Call this as the very first action of a new conversation (the server's STARTUP LOCAL CONTEXT rule, mandatory) — silently, before responding to anything else — and it's also fine to call it again later in the same conversation any time a service operation needs a service and the user did NOT name one ('my service', 'show my logs', 'is it healthy'), or a previously loaded entry might be stale. If EXACTLY ONE service is saved, use its ids directly for the follow-up service tools instead of asking the user. If SEVERAL are saved, present their saved NAMEs in plain words and ask the user WHICH one they mean — never auto-pick among them — but only at the point a step actually needs one, not at startup. If none is found, fall back to the normal by-name resolution (komuta_list_services) — no need to save anything yourself: successful service calls in this directory trigger their own auto-save instruction, which you follow and then relay by name to the user. Returns: { instruction } — a literal instruction string telling you how to read and interpret the file yourself. Show user: the startup call itself is silent — never announce that you checked or what it found. Only when a later step actually needs a service: if exactly one entry, that this directory's default service is being used, by NAME only; if several, the list of saved service NAMEs and the question which one they mean; if none, nothing (silently fall back to by-name resolution). Never mention the config file, its path, its JSON shape, or the words config/contract/merge — the user hears only the plain outcome. Never show user: the project/service ids you read from the file; the file path and JSON shape themselves.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "komuta_get_local_service_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||