For developers of assistant appsThe assistant API
Manabiya for Android is an MCP server (Model Context Protocol) for assistant apps on the same phone. With the learner’s permission, a voice assistant can see what Manabiya shows and act in it for them: follow today’s plan, open a lesson, play a recording, answer a quiz question with the choice the learner says. This page is its specification.
What an assistant can and cannot do
- It sees what the learner sees, when it asks: the place in the app, the text and controls on the screen, today’s plan, the state of a quiz.
- It does what a tap does: open places, tap controls, type into a field, scroll, play and stop recordings, show the learner where something is.
- It sees readings (furigana) only where they are shown, and a quiz question’s right answer and translation only after the learner has answered. The instructions ask it to wait for the learner’s own answer and never to give one away.
- It cannot reach the account settings: the password, signing out, the Google link, the data export and deleting the account are neither reported nor usable, and it never types a password.
- Manabiya sends nothing to any assistant by itself and keeps no connection open: it answers each request of an app the learner allowed, on the phone, and nothing of it passes through our servers. See the privacy policy.
Permission
The provider is protected by the permission com.silenosworks.manabiya.permission.CONTROL (protection level dangerous). An assistant app declares it, and the package query, in its manifest and asks for it at run time; Android shows the learner “Allow your app to control Manabiya?”. Without it Android refuses the call with a SecurityException. The learner can take the permission back at any time under Android Settings › Apps › your app › Permissions.
The transport
MCP defines how messages are framed, not which pipe carries them; on Android the pipe is a content provider. Each message is one call:
Bundle? ContentResolver.call(Uri.parse("content://com.silenosworks.manabiya.assistant"), "mcp", <one JSON-RPC message>, null)
- In: the argument is one JSON-RPC 2.0 message as UTF-8 JSON text: a request or a notification. Batches are not part of MCP and are refused.
- Out: the Bundle’s string
json holds the response to a request, or "" after a notification (which gets no response). - Blocking: the call returns once Manabiya has answered, so make it off the main thread. An action waits until the page has settled (about 2 seconds at most);
manabiya_act with wait waits up to its seconds. After 20 seconds (35 for wait) the call ends with an error. - No session: every call stands alone. The server sends no requests or notifications of its own (no sampling, elicitation, logging or list changes), so the client never has to listen.
- Cancellation: a call cannot be stopped once made;
notifications/cancelled is accepted and has nothing to cancel. - Manabiya must be open. Start it with its launch intent (
getLaunchIntentForPackage("com.silenosworks.manabiya")). When it is not open, a tool call returns a result with isError: true and "open": false that says so, and other requests get the error -32001. Every tool result carries android: {version, inFront}, and a notice when Manabiya is open but not on screen. - Not installed: an unknown authority makes
call throw IllegalArgumentException. Manabiya 1.3 knows only the older methods below and answers mcp with an “Unknown method” error object.
Versions
2026-07-28: every request carries _meta["io.modelcontextprotocol/protocolVersion"] and _meta["io.modelcontextprotocol/clientCapabilities"]. server/discover answers supportedVersions (newest first), capabilities, instructions, cache hints (ttlMs, cacheScope) and the server’s identity in _meta["io.modelcontextprotocol/serverInfo"]. Results carry resultType: "complete"; a version Manabiya does not speak gets the error -32022 with the versions it does.
2025-11-25, 2025-06-18, 2025-03-26: initialize agrees on the version the client asks for, or offers 2025-11-25, and returns serverInfo, capabilities and instructions; notifications/initialized and ping are answered. As the transport has no connection, nothing is kept between calls: requests after initialize are answered the same with or without it.
It is tested with the official TypeScript SDK, 1.x and 2.x, in both eras, through a transport that sends each message with one call and hands its response back.
The tools
tools/list returns these three. A tool’s answer is a JSON object: as text in content[0] for every client, and the same object as structuredContent. An action that could not be done ("ok": false, with error saying why) is a result with isError: true, so the model can read it and try again; an unknown tool is a protocol error.
manabiya_screen · See the screen
What Manabiya shows now: the place (view, topic, tab), today's plan and its next step, the screen's own state (a quiz question with its numbered choices, and once answered whether it was right and why), the text in the window, the controls with ids, and a hint on what usually comes next. With "read", the whole text of the page (or of one control's line or card) instead of what fits in the window.
Annotations: read-only: yes · idempotent: no · open world: no.
manabiya_find · Find lessons
Finds lessons (topics), their quizzes and videos, and lines of audio by English words or Japanese (kanji or kana). Returns ids for manabiya_act go (topic, tab, item).
Annotations: read-only: yes · idempotent: yes · open world: no.
manabiya_act · Act in Manabiya
Does one thing in Manabiya and returns what it did and the screen afterwards. Actions:
continue: the next stone of today's path.go: a place: place = home | today | review | garden | settings | search | topic (with topic = its id, and optionally tab = lesson | watch | listen | quiz and item = a quiz, video or track id; settings with section = reading | speaking | about).answer: in a quiz, choice = the number of the learner's choice (1 to 4).next: after an answer, the next question (or the result).replay: a listening question's audio again.tap: the control with id (a button, link, tab, switch, a choice card).type: text into the input with id; submit = true presses Enter after it.scroll: direction = down | up (half a page) | top | bottom.back: the phone's Back (closes what is open, or goes back a place).close: closes the open dialog, search or menu.stop: stops any audio or video.point: shows the learner a control (id) with a caption (text), or just a caption; seconds = how long (default 12).furigana: on = true shows every reading on this page until it is left; false goes back to the settings.wait: waits until the audio that plays ends (at most seconds, default 10, up to 30), then returns the screen.zoom: the page's size (the text reflows; Settings → Reading → Zoom): step = in, out or reset, or percent = 80 to 200; a phone takes up to 150%.
Annotations: read-only: no · idempotent: no · open world: no.
What the screen looks like
manabiya_screen (and every action, under screen) describes the screen in the learner’s terms, about 1,000 to 1,500 tokens:
page, signedIn, place (view, topic, tab), open (a dialog or menu), plan (today’s plan and its next step; in detail on Today, with when the plan will end);screen, for screens that know more than their text: a quiz question with its numbered choices, and once answered whether it was right, the explanation and the sentence’s translation;playing, message (a toast), text (the text in the window, up to 1,500 characters), controls (up to 60, with ids such as c12 for tap, type and point) and hint (what usually comes next).
An example in Kotlin
// AndroidManifest.xml of the assistant app:
// <uses-permission android:name="com.silenosworks.manabiya.permission.CONTROL" />
// <queries><package android:name="com.silenosworks.manabiya" /></queries>
// Once, from an Activity: Android asks the learner "Allow <your app> to control Manabiya?"
requestPermissions(arrayOf("com.silenosworks.manabiya.permission.CONTROL"), REQUEST_CONTROL)
val manabiya = Uri.parse("content://com.silenosworks.manabiya.assistant")
val meta = JSONObject()
.put("io.modelcontextprotocol/protocolVersion", "2026-07-28")
.put("io.modelcontextprotocol/clientCapabilities", JSONObject())
var nextId = 1
/** One MCP request: its JSON-RPC response. Call it off the main thread. */
fun mcp(method: String, params: JSONObject = JSONObject()): JSONObject {
val request = JSONObject().put("jsonrpc", "2.0").put("id", nextId++).put("method", method)
.put("params", params.put("_meta", meta))
val answer = context.contentResolver.call(manabiya, "mcp", request.toString(), null)
return JSONObject(answer!!.getString("json")!!)
}
val discover = mcp("server/discover").getJSONObject("result") // versions, capabilities, instructions
val tools = mcp("tools/list").getJSONObject("result").getJSONArray("tools")
val screen = mcp("tools/call", JSONObject().put("name", "manabiya_screen").put("arguments", JSONObject()))
val answered = mcp("tools/call", JSONObject().put("name", "manabiya_act")
.put("arguments", JSONObject().put("action", "answer").put("choice", 2)))
// answered.result.structuredContent: {"ok": true, "did": "Answered 2: right.", "screen": {...}}
One exchange as it travels:
→ {"jsonrpc":"2.0","id":7,"method":"tools/call","params":{"name":"manabiya_act",
"arguments":{"action":"continue"},
"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}
← {"jsonrpc":"2.0","id":7,"result":{"resultType":"complete",
"content":[{"type":"text","text":"{\"ok\":true,\"did\":\"Opened the lesson of 店 …\", …}"}],
"structuredContent":{"ok":true,"did":"Opened the lesson of 店 …","screen":{…},
"android":{"version":"1.4","inFront":true}},
"isError":false}}
The instructions
server/discover and initialize return these instructions for the assistant’s system prompt. They keep the learner in charge of their own answers and their account.
Read the instructions
Manabiya (学び舎) is a Japanese study app (JLPT N5 to N1: vocabulary, grammar and kanji lessons with audio, videos and quizzes, and a daily plan). You help the learner use it by voice: you see the screen with manabiya_screen, find lessons with manabiya_find and act with manabiya_act. Every act answers with what it did and the screen afterwards, so you rarely need manabiya_screen right after one.
How to steer:
- "plan.next" is the next stone of today's path; act "continue" opens it (the review first, then each new topic's lesson, videos and quiz, then practice). Offer it whenever the learner asks what to do. When a stone is done, a bar at the bottom offers the next one. "Go" opens it when the learner is ready. "Stay here" dismisses the bar. Today (the path) opens on today's stones; the pond scrolls sideways to the days before and the days to come (the arrows at its edges, or a day in the strip of days above it; "Back to today" returns); Today also says when the plan ends, two ways: as planned (the plan run forward at its minutes a day) and at the learner's pace so far (the detailed plan state has both, as planEnd); once today's stones are done, tapping the next day's stone takes its topic into today (there is no "one more topic" button any more).
- A lesson's stroke order and recordings are bookmarks: the "Bookmarks" list beside (or above) the text jumps to them.
- To go over earlier lessons, Today lists the days before under "Earlier lessons"; on a topic, the "Previous lesson" and "Next lesson" buttons go through every lesson the learner has studied, in the order they studied them, on the same tab.
- A quiz question ("screen.kind" "quiz") is the learner's to answer. Read it out if they ask, then wait. Never say or hint the right answer, and never translate the question's Japanese before they have answered, unless they ask for a hint or the answer. When they give an answer (a number, or the words of a choice), act "answer" with that choice's number. When discussing the correct answer, always give the full English translation of the Japanese sentence from screen.answered.translation, whether they answered correctly or missed it. Explain why the answer fits and act "next" when they are ready.
- Readings appear as 漢字(かんじ) only where the learner sees them; Settings may hide them on purpose. Act "furigana" on=true shows every reading on the page until it is left.
- When the learner finds the text too small or too large, act "zoom" (step in or out, or a percent); the screen's "zoom" says the size when it is not 100%.
- Use "point" to show where something is (a ring round a control, with a short caption) when the learner wants to do it themselves or asks where something is.
- Controls have ids (c12) that last while the screen shows them; when an id fails, look at the screen again. Prefer the named actions (continue, go, answer, next, replay, back) to tapping.
- When the screen says "playing" (a recording of the lesson or the question), act "wait" before you speak, so you don't talk over it.
- Scroll down through a lesson page as the learner reads; it counts as read once its end has been on screen.
- When you say Japanese aloud, use the kana of the reading where it is shown, so a voice reads it correctly.
- The learner's account (password, sign-out, deleting it, the data export) is theirs alone: you cannot use it, and you never type a password.
- Keep spoken replies short; the app shows the details.
The older methods
Manabiya 1.3 offered the same tools as four provider methods, which 1.4 still answers for clients written for it: tools (the tool definitions in the Claude API’s form and the guide), state (as manabiya_screen), find and act, each with a JSON object as the argument and JSON in the Bundle’s json and a boolean ok. They are deprecated: new clients use mcp.
Testing
adb’s shell cannot hold the permission, so it can reach the provider only in a debug build of Manabiya, for example adb shell content call --uri content://com.silenosworks.manabiya.assistant --method mcp --arg '{"jsonrpc":"2.0","id":1,"method":"ping"}'. Questions: hello@silenosworks.com.