e-tax

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

e-Tax 電子申告 — ブラウザ自動化による確定申告書等作成コーナー入力

e-Tax Electronic Filing — Automated Input to NTA Tax Return Preparation Corner using Claude in Chrome

shinkoku で計算した確定申告データを、確定申告書等作成コーナー(https://www.keisan.nta.go.jp/)に Claude in Chrome を使ってブラウザ上で入力・提出するためのスキル。
This guide provides step-by-step instructions for using Claude in Chrome to automate input into the NTA Tax Return Preparation Corner for filing final tax returns, including blue returns, income tax, and consumption tax.

前提条件

Prerequisites

  • /income-tax
    スキルで所得税の計算が完了していること
  • /settlement
    スキルで決算書(PL/BS)の作成が完了していること
  • /consumption-tax
    スキルで消費税の計算が完了していること(該当者のみ)
  • shinkoku.config.yaml
    が設定済みであること
  • ブラウザ自動化ツールがいずれか利用可能であること(下記「ブラウザ自動化方式の選択」参照)
  • Completion of income tax calculation using the
    /income-tax
    skill
  • Completion of financial statements (P/L, B/S) using the
    /settlement
    skill
  • Completion of consumption tax calculation using the
    /consumption-tax
    skill (if applicable)
  • shinkoku.config.yaml
    is properly configured
  • One of the browser automation tools is available (see "Browser Automation Method Selection" below)

ブラウザ自動化方式の選択

Browser Automation Method Selection

確定申告書等作成コーナーへの入力には、以下の3つの方式がある。
There are three methods for inputting data into the Tax Return Preparation Corner:

方式 A: Claude in Chrome(推奨)

Method A: Claude in Chrome (Recommended)

項目内容
対象環境Windows / macOS のネイティブ Chrome
前提Claude in Chrome 拡張機能がインストール済み
利点OS 検出の問題なし。追加設定不要
ItemDetails
Supported EnvironmentsNative Chrome on Windows / macOS
PrerequisitesClaude in Chrome extension installed
AdvantagesNo OS detection issues, no additional configuration required

方式 B: Antigravity Browser Sub-Agent

Method B: Antigravity Browser Sub-Agent

項目内容
対象環境Windows / macOS / Linux(Antigravity IDE)
前提Antigravity IDE がインストール済みで
browser_subagent
ツールが利用可能
利点ネイティブ Chrome を使用するため OS 偽装不要。Linux でも動作
ItemDetails
Supported EnvironmentsWindows / macOS / Linux (Antigravity IDE)
PrerequisitesAntigravity IDE installed with
browser_subagent
tool available
AdvantagesUses native Chrome, no OS spoofing required, works on Linux

方式 C: Playwright CLI(フォールバック)

Method C: Playwright CLI (Fallback)

項目内容
対象環境WSL / Linux、または Claude in Chrome・Antigravity が利用できない環境
前提
@playwright/cli
+ Playwright CLI スキル +
etax-stealth.js
(OS 偽装スクリプト)
制限headed モード必須(QR コード認証に物理操作が必要)
ItemDetails
Supported EnvironmentsWSL / Linux, or environments where Claude in Chrome/Antigravity are unavailable
Prerequisites
@playwright/cli
+ Playwright CLI skill +
etax-stealth.js
(OS spoofing script)
RestrictionsHeaded mode required (physical operation needed for QR code authentication)

判定ロジック

Decision Logic

1. Claude in Chrome のツール(browser_navigate 等)が利用可能か?
   → はい: 方式 A を使用
   → いいえ: 次へ

2. Antigravity の browser_subagent ツールが利用可能か?
   → はい: 方式 B を使用
   → いいえ: 次へ

3. Bash ツールで `playwright-cli` コマンドが利用可能か?
   → はい: 方式 C を使用(headed モードで起動)
   → いいえ: エラー表示

   エラーメッセージ:
   「確定申告書等作成コーナーへの入力には、Claude in Chrome、
    Antigravity Browser Sub-Agent、または Playwright CLI が必要です。
    セットアップ方法は README.md の『ブラウザ自動化』セクションを参照してください。」
1. Is Claude in Chrome tool (browser_navigate, etc.) available?
   → Yes: Use Method A
   → No: Proceed to next

2. Is Antigravity's browser_subagent tool available?
   → Yes: Use Method B
   → No: Proceed to next

3. Is `playwright-cli` command available via Bash tool?
   → Yes: Use Method C (launch in headed mode)
   → No: Display error

   Error Message:
   "Claude in Chrome, Antigravity Browser Sub-Agent, or Playwright CLI is required for input to the Tax Return Preparation Corner. Refer to the 'Browser Automation' section in README.md for setup instructions."

方式 B 使用時の操作方法

Operation Method for Method B

Antigravity の
browser_subagent
は高レベルなタスク記述で操作する。 各ステップの入力操作を自然言語で記述し、
browser_subagent
に委任する。
例:
※ Antigravity はネイティブ Chrome を使用するため、
etax-stealth.js
による OS 偽装は不要。
Antigravity's
browser_subagent
operates with high-level task descriptions. Describe each step's input operation in natural language and delegate to
browser_subagent
.
Examples:
Note: Antigravity uses native Chrome, so OS spoofing with
etax-stealth.js
is not required.

方式 C 使用時のセッション開始手順

Session Start Procedure for Method C

Playwright CLI でブラウザを開く際の手順:
  1. 環境変数を設定:
    PLAYWRIGHT_MCP_INIT_SCRIPT=skills/e-tax/scripts/etax-stealth.js
  2. ブラウザ起動:
    playwright-cli -s=etax open <url> --headed --browser=chrome
  3. 以降のコマンドは
    -s=etax
    セッション指定で実行
Steps to open browser with Playwright CLI:
  1. Set environment variable:
    PLAYWRIGHT_MCP_INIT_SCRIPT=skills/e-tax/scripts/etax-stealth.js
  2. Launch browser:
    playwright-cli -s=etax open <url> --headed --browser=chrome
  3. Execute subsequent commands with
    -s=etax
    session specification

設定の読み込み(最初に実行)

Load Configuration (Execute First)

  1. shinkoku.config.yaml
    を Read ツールで読み込む
  2. ファイルが存在しない場合は
    /setup
    スキルの実行を案内して終了する
  3. 設定値を把握する:
    • 納税者プロファイル(氏名・住所・マイナンバー等)
    • 事業情報(屋号・業種等)
    • 申告方法(e-Tax/郵送/窓口)
  1. Load
    shinkoku.config.yaml
    using the Read tool
  2. If the file does not exist, guide the user to execute the
    /setup
    skill and exit
  3. Understand configuration values:
    • Taxpayer profile (name, address, My Number, etc.)
    • Business information (trade name, industry type, etc.)
    • Filing method (e-Tax/mail/counter)

進捗情報の読み込み

Load Progress Information

  1. .shinkoku/progress/progress-summary.md
    を Read ツールで読み込む(存在する場合)
  2. 以下の引継書を Read ツールで読み込む(存在する場合):
    • .shinkoku/progress/06-settlement.md
      — 決算結果(PL/BS データ)
    • .shinkoku/progress/07-income-tax.md
      — 所得税計算結果
    • .shinkoku/progress/08-consumption-tax.md
      — 消費税計算結果
    • .shinkoku/progress/02-assess.md
      — 課税判定結果
  3. .shinkoku/progress/10-etax.md
    status
    を確認する:
    • status: interrupted
      の場合 → 下記「中断・再開プロトコル」の 再開手順 に従う
    • status: completed
      の場合 → ユーザーに完了済みである旨を伝え、再実行の意図を確認する
  4. 計算結果がまだ存在しない場合は、先に
    /income-tax
    /settlement
    の実行を案内する
  1. Load
    .shinkoku/progress/progress-summary.md
    using the Read tool (if it exists)
  2. Load the following handover documents using the Read tool (if they exist):
    • .shinkoku/progress/06-settlement.md
      — Settlement results (P/L/B/S data)
    • .shinkoku/progress/07-income-tax.md
      — Income tax calculation results
    • .shinkoku/progress/08-consumption-tax.md
      — Consumption tax calculation results
    • .shinkoku/progress/02-assess.md
      — Taxability determination results
  3. Check
    status
    in
    .shinkoku/progress/10-etax.md
    :
    • If
      status: interrupted
      → Follow resumption procedure in "Interruption/Resumption Protocol" below
    • If
      status: completed
      → Notify user that filing is complete and confirm intention to re-execute
  4. If calculation results do not exist yet, guide user to execute
    /income-tax
    and
    /settlement
    first

中断・再開プロトコル

Interruption/Resumption Protocol

全ステップ共通のルール。ユーザーが中断を要求した場合(「中断したい」「今日はここまで」「また続きから」等)、以下の手順に従う。
Rules common to all steps. If the user requests interruption (e.g., "I want to stop", "That's it for today", "I'll continue later"), follow these steps:

中断手順

Interruption Procedure

  1. 現在のステップの入力内容を確認する — 未保存の入力がないか確認
  2. .data ファイルのダウンロードを案内する — AskUserQuestion で以下を表示:
作成コーナーの入力データを .data ファイルとして保存することを推奨します。
画面上部の「入力データの一時保存」ボタン(またはページ下部の「ここまでの入力データを保存する」リンク)
をクリックし、ファイルをダウンロードしてください。

ダウンロードが完了したら「ダウンロード済み」を選択してください。
  • 選択肢: 「ダウンロード済み」 / 「スキップ(保存しない)」
  • 「スキップ」が選ばれた場合は、次回は最初からやり直しになる可能性がある旨を警告する
  1. 進捗ファイルを記録する
    .shinkoku/progress/10-etax.md
    に以下の形式で Write ツールで出力:
---
step: 10
skill: e-tax
status: interrupted
last_completed_step: "{最後に完了したステップ番号(例: 3)}"
last_url: "{中断時のブラウザURL}"
data_file_saved: {true/false}
interrupted_at: "{当日日付 YYYY-MM-DD}"
fiscal_year: {tax_year}
---
  1. Confirm input contents of current step — Check for unsaved input
  2. Guide to download .data file — Display the following using AskUserQuestion:
We recommend saving the input data from the preparation corner as a .data file.
Click the "Temporarily save input data" button at the top of the screen (or the "Save input data up to this point" link at the bottom of the page)
and download the file.

Please select "Downloaded" once the download is complete.
  • Options: "Downloaded" / "Skip (do not save)"
  • If "Skip" is selected, warn the user that they may have to start over from the beginning next time
  1. Record progress file — Output to
    .shinkoku/progress/10-etax.md
    in the following format using the Write tool:
---
step: 10
skill: e-tax
status: interrupted
last_completed_step: "{Last completed step number (e.g., 3)}"
last_url: "{Browser URL at time of interruption}"
data_file_saved: {true/false}
interrupted_at: "{Current date YYYY-MM-DD}"
fiscal_year: {tax_year}
---

e-Tax 電子申告(中断)

e-Tax Electronic Filing (Interrupted)

中断時点の状況

Status at Interruption

  • 最後に完了したステップ: ステップ{N}
  • 中断時のURL: {URL}
  • .data ファイル保存: {済/未}
  • Last completed step: Step {N}
  • URL at interruption: {URL}
  • .data file saved: {Yes/No}

次回の再開方法

How to Resume Next Time

  1. /e-tax
    スキルを再実行する
  2. .data ファイルがある場合は「保存データを利用して作成」から再開する
  3. .data ファイルがない場合はステップ0からやり直す

4. **ユーザーに中断完了を報告** — 次回の再開方法を案内して終了する
  1. Re-execute the
    /e-tax
    skill
  2. If you have a .data file, resume from "Create using saved data"
  3. If you don't have a .data file, start over from step 0

4. **Notify user of completion of interruption** — Guide user on how to resume next time and exit

再開手順

Resumption Procedure

.shinkoku/progress/10-etax.md
status: interrupted
を検出した場合:
  1. 中断時の情報(
    last_completed_step
    ,
    data_file_saved
    )を読み取る
  2. AskUserQuestion で以下を表示:
前回の e-Tax 入力はステップ{N}で中断されています。

再開方法を選択してください。
  • 選択肢:
    • 「.data ファイルから再開する」(
      data_file_saved: true
      の場合のみ表示)
    • 「最初からやり直す」
    • 「中断記録を破棄して終了する」
  1. .data ファイルから再開する場合:
    • 確定申告書等作成コーナーのトップページにアクセス
    • 「保存データを利用して作成」→「作成再開」を選択
    • .data
      ファイルのアップロードを案内
    • 読み込み完了後、
      last_completed_step
      の次のステップから再開する
  2. 最初からやり直す場合:
    • ステップ0 から通常通り開始する
If
status: interrupted
is detected in
.shinkoku/progress/10-etax.md
:
  1. Read interruption information (
    last_completed_step
    ,
    data_file_saved
    )
  2. Display the following using AskUserQuestion:
Your previous e-Tax input was interrupted at step {N}.

Please select how to resume.
  • Options:
    • "Resume from .data file" (display only if
      data_file_saved: true
      )
    • "Start over from the beginning"
    • "Discard interruption record and exit"
  1. If resuming from .data file:
    • Access the top page of the Tax Return Preparation Corner
    • Select "Create using saved data" → "Resume creation"
    • Guide user to upload the .data file
    • After loading is complete, resume from the step following
      last_completed_step
  2. If starting over from the beginning:
    • Start normally from step 0

ステップ0: 必須データの検証

Step 0: Verify Required Data

確定申告書等作成コーナーへの入力に必要なデータが揃っているか検証する。
Verify that all data required for input to the Tax Return Preparation Corner is available.

検証項目

Verification Items

[1] 税額計算済み
    - .shinkoku/progress/07-income-tax.md が存在し、status: completed であること

[2] プロファイル完備
    - 氏名(姓・名)が登録されているか
    - 住所が登録されているか
    - 所轄税務署名が登録されているか

[3] 決算書データ
    - PL/BS の計算結果が取得可能であること

[4] 消費税(該当者のみ)
    - .shinkoku/progress/08-consumption-tax.md が存在し、status: completed であること

[5] サニティチェック
    - `tax_calc.py sanity-check` を実行する
    - error > 0 の場合: 入力を中止し、`/income-tax` スキルで修正を促す
    - warning > 0 の場合: ユーザーに確認してから続行する

[1] Tax amount calculated
    - .shinkoku/progress/07-income-tax.md exists and has status: completed

[2] Profile complete
    - Is name (last/first) registered?
    - Is address registered?
    - Is competent tax office name registered?

[3] Financial statement data
    - P/L/B/S calculation results are available

[4] Consumption tax (if applicable)
    - .shinkoku/progress/08-consumption-tax.md exists and has status: completed

[5] Sanity check
    - Execute `tax_calc.py sanity-check`
    - If error > 0: Abort input and prompt correction using `/income-tax` skill
    - If warning > 0: Confirm with user before proceeding

画面遷移フロー全体像

Overall Screen Transition Flow

┌─────────────────────────────────────────────────────┐
│ CC-AA-010 税務署への提出方法の選択                      │
│   マイナンバーカード: はい → スマホ: はい               │
│   → 「スマートフォンを使用する」                        │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AE-090 作成する申告書等の選択                        │
│   「決算書・収支内訳書(+所得税)」を選択              │
│   → doSubmitCMW0900(2,'25')                           │
│                                                         │
│   ※ 消費税のみ別途作成する場合:                        │
│   → doSubmitCMW0900(3,'25')                           │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AE-600 マイナポータル連携の選択                      │
│   → 「マイナポータル連携を利用しない」                  │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AA-024 e-Taxを行う前の確認                           │
│   → 「利用規約に同意して次へ」                          │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AA-440 QRコード認証                                  │
│   ★ ユーザーの物理的認証が必要                         │
│   スマートフォンでQRコード読み取り                      │
│   → マイナンバーカード認証完了後、自動遷移              │
└──────────────┬──────────────────────────────────────┘
       ┌───────┴───────┐
       ▼               ▼
  決算書コーナー    所得税コーナー
  (事業所得あり)    (給与のみ等)
┌─────────────────────────────────────────────────────┐
│ CC-AA-010 Select submission method to tax office     │
│   My Number Card: Yes → Smartphone: Yes              │
│   → "Use smartphone"                                 │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AE-090 Select return form to create               │
│   Select "Financial Statement/Income Statement (+ Income Tax)" │
│   → doSubmitCMW0900(2,'25')                          │
│                                                         │
│   *For consumption tax only, create separately:       │
│   → doSubmitCMW0900(3,'25')                          │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AE-600 Select My Number Portal linkage            │
│   → "Do not use My Number Portal linkage"            │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AA-024 Confirmation before e-Tax filing            │
│   → "Agree to terms of use and proceed"              │
└──────────────┬──────────────────────────────────────┘
┌─────────────────────────────────────────────────────┐
│ CC-AA-440 QR code authentication                     │
│   ★ User physical authentication required            │
│   Read QR code with smartphone                       │
│   → Automatic transition after My Number Card authentication │
└──────────────┬──────────────────────────────────────┘
       ┌───────┴───────┐
       ▼               ▼
  Financial Statement Corner  Income Tax Corner
  (With business income)      (Salary only, etc.)

決算書コーナーのフロー

Financial Statement Corner Flow

/kessan/ac/r7/top → ac0300(種類選択)→ aa0200(P/L入力)
  → aa0100(青色特別控除)→ preAoiroCalc(B/S入力)
  → aa0700(所得確認)→ ac0500(住所氏名)→ 印刷/保存
  → 所得税コーナーへ遷移
/kessan/ac/r7/top → ac0300 (Type selection) → aa0200 (P/L input)
  → aa0100 (Blue return special deduction) → preAoiroCalc (B/S input)
  → aa0700 (Income confirmation) → ac0500 (Address and name) → Print/Save
  → Transition to Income Tax Corner

所得税コーナーのフロー

Income Tax Corner Flow

SS-AA-010a(所得選択)→ SS-AA-050(収入入力ハブ)
  → SS-CA-010(給与入力) / SS-CB-xxx(事業所得) / 雑所得
  → SS-AA-070a(控除1/2)→ SS-AA-080(控除2/2)
  → SS-AA-090(計算結果確認)
  → SS-AC-010a(納付方法)→ SS-AC-020a(住民税等)
  → SS-AC-030(基本情報)→ SS-AC-040(マイナンバー)
  → ステップ5.5(意思決定ゲート)→ ステップ6(電子署名・送信プロトコル)
SS-AA-010a (Income selection) → SS-AA-050 (Income input hub)
  → SS-CA-010 (Salary input) / SS-CB-xxx (Business income) / Miscellaneous income
  → SS-AA-070a (Deductions 1/2) → SS-AA-080 (Deductions 2/2)
  → SS-AA-090 (Calculation result confirmation)
  → SS-AC-010a (Payment method) → SS-AC-020a (Resident tax, etc.)
  → SS-AC-030 (Basic information) → SS-AC-040 (My Number)
  → Step 5.5 (Decision gate) → Step 6 (Digital signature and transmission protocol)

消費税コーナーのフロー(所得税完了後)

Consumption Tax Corner Flow (After Income Tax Completion)

所得税完了 → 「消費税の申告書作成はこちら」

2割特例:
  ac0100(条件判定) → ac0250(所得区分選択) → 売上入力hub → 売上入力detail
  → 売上入力hub → 中間納付 → ac0300(計算結果) → 納税地等
  → ステップ6.5(電子署名・送信プロトコル)

簡易課税:
  ac0100(条件判定) → ac0250(所得区分・事業区分選択) → 売上入力hub → 売上入力detail
  → 売上入力hub → ak2140(仕入税額控除方式選択)※ → 中間納付 → ac0300(計算結果)
  → 納税地等 → ステップ6.5(電子署名・送信プロトコル)
  ※ 2種以上の事業がある場合のみ

一般課税:
  ac0100(条件判定) → ac0250(所得区分選択) → 売上・仕入入力hub → 売上入力detail
  → ai3610(決算額テーブル)※ → 売上・仕入入力hub → 中間納付 → ac0300(計算結果)
  → 納税地等 → ステップ6.5(電子署名・送信プロトコル)
  ※ 積上げ計算選択時のみ

Income tax completion → "Create consumption tax return here"

20% Special Provision:
  ac0100 (Condition determination) → ac0250 (Income category selection) → Sales input hub → Sales input detail
  → Sales input hub → Interim payment → ac0300 (Calculation result) → Tax payment location, etc.
  → Step 6.5 (Digital signature and transmission protocol)

Simplified Taxation:
  ac0100 (Condition determination) → ac0250 (Income category/business category selection) → Sales input hub → Sales input detail
  → Sales input hub → ak2140 (Input tax credit method selection)* → Interim payment → ac0300 (Calculation result)
  → Tax payment location, etc. → Step 6.5 (Digital signature and transmission protocol)
  *Only if operating two or more types of businesses

Standard Taxation:
  ac0100 (Condition determination) → ac0250 (Income category selection) → Sales/purchase input hub → Sales input detail
  → ai3610 (Settlement amount table)* → Sales/purchase input hub → Interim payment → ac0300 (Calculation result)
  → Tax payment location, etc. → Step 6.5 (Digital signature and transmission protocol)
  *Only if cumulative calculation is selected

ステップ1: 確定申告書等作成コーナーへのアクセス

Step 1: Access Tax Return Preparation Corner

開始URL

Start URL

CC-AA-010: 税務署への提出方法の選択

CC-AA-010: Select Submission Method to Tax Office

画面番号: CC-AA-010
  1. 「マイナンバーカードをお持ちですか」→ 「はい」 ラジオボタンをクリック
  2. 「マイナンバーカード読み取りに対応したスマートフォン又はICカードリーダライタをお持ちですか」→ 「はい」 をクリック
  3. 「スマートフォンを使用する」 をクリック
    • JS:
      doSubmitCSW0100('1','3','/ky/sm/csw0100_myno_qr')
Screen number: CC-AA-010
  1. "Do you have a My Number Card?" → Click "Yes" radio button
  2. "Do you have a smartphone or IC card reader/writer compatible with My Number Card reading?" → Click "Yes"
  3. Click "Use smartphone"
    • JS:
      doSubmitCSW0100('1','3','/ky/sm/csw0100_myno_qr')

CC-AE-090: 作成する申告書等の選択

CC-AE-090: Select Return Form to Create

画面番号: CC-AE-090
選択肢(令和7年分):
  • 所得税
    doSubmitCMW0900(1,'25')
  • 決算書・収支内訳書(+所得税)
    doSubmitCMW0900(2,'25')
    ← 事業所得ありの場合
  • 消費税
    doSubmitCMW0900(3,'25')
  • 贈与税
    doSubmitCMW0900(4,'25')
判断基準:
  • 事業所得あり → 「決算書・収支内訳書(+所得税)」
  • 事業所得なし(給与のみ等)→ 「所得税」
  • 消費税は所得税完了後に別途作成
Screen number: CC-AE-090
Options (FY2025):
  • Income Tax
    doSubmitCMW0900(1,'25')
  • Financial Statement/Income Statement (+ Income Tax)
    doSubmitCMW0900(2,'25')
    ← If you have business income
  • Consumption Tax
    doSubmitCMW0900(3,'25')
  • Gift Tax
    doSubmitCMW0900(4,'25')
Judgment Criteria:
  • With business income → "Financial Statement/Income Statement (+ Income Tax)"
  • Without business income (salary only, etc.) → "Income Tax"
  • Consumption tax is created separately after income tax completion

CC-AE-600: マイナポータル連携の選択

CC-AE-600: Select My Number Portal Linkage

「マイナポータル連携を利用しない」 をクリック
→ Click "Do not use My Number Portal linkage"

CC-AA-024: e-Taxを行う前の確認

CC-AA-024: Confirmation Before e-Tax Filing

「利用規約に同意して次へ」 をクリック
※ 環境チェック
termnalInfomationCheckOS_myNumberLinkage()
が実行される。 Windows/macOS の Chrome/Edge であれば問題なし。
→ Click "Agree to terms of use and proceed"
Note: Environment check
termnalInfomationCheckOS_myNumberLinkage()
is executed. No issues with Chrome/Edge on Windows/macOS.

CC-AA-440: QRコード認証

CC-AA-440: QR Code Authentication

★ ユーザー操作待ち — ブラウザ操作を一時停止
この画面ではエージェントがブラウザを操作してはならない。 AskUserQuestion ツールで一時停止し、ユーザーが認証完了を報告するまで絶対に次のステップに進まないこと。
AskUserQuestion で以下を表示する:
QRコード認証画面が表示されました。
スマートフォンのマイナポータルアプリでQRコードを読み取り、
マイナンバーカードで認証してください。

認証が完了したら「認証完了」を選択してください。
  • 選択肢: 「認証完了」 / 「QRコードが表示されない」
  • 「QRコードが表示されない」が選ばれた場合は下記の ⚠️ Playwright CLI 使用時の注意 を参照して対処する
  • ユーザーが「認証完了」を選択するまで、一切のブラウザ操作・画面遷移を行わない
認証完了後、自動的に次の画面に遷移する。
⚠️ Playwright CLI 使用時の注意:
PLAYWRIGHT_MCP_INIT_SCRIPT
環境変数で
etax-stealth.js
を指定することで サーバーベイク関数パッチが自動適用されるが、QR コードが表示されない場合はコンソールで
getClientOS()
の 戻り値を確認し、
'Windows'
でなければ以下を手動実行する:
javascript
window.getClientOS = function() { return 'Windows'; };
displayQrcode();

★ Wait for user operation — Pause browser operation
The agent must not operate the browser on this screen. Pause using AskUserQuestion tool and do not proceed to next step until user reports authentication completion.
Display the following using AskUserQuestion:
QR code authentication screen is displayed.
Read the QR code with your smartphone's My Number Portal app
and authenticate with your My Number Card.

Please select "Authentication completed" once authentication is done.
  • Options: "Authentication completed" / "QR code is not displayed"
  • If "QR code is not displayed" is selected, refer to ⚠️ Notes for Playwright CLI use below for troubleshooting
  • Do not perform any browser operations or screen transitions until user selects "Authentication completed"
After authentication is completed, automatically transition to next screen.
⚠️ Notes for Playwright CLI use: Server bake function patches are automatically applied by specifying
etax-stealth.js
in the
PLAYWRIGHT_MCP_INIT_SCRIPT
environment variable, but if QR code is not displayed, check the return value of
getClientOS()
in the console. If it is not
'Windows'
, execute the following manually:
javascript
window.getClientOS = function() { return 'Windows'; };
displayQrcode();

ステップ2: 青色申告決算書の入力(事業所得がある場合)

Step 2: Input Blue Return Financial Statement (If you have business income)

⚠️ ネイティブダイアログ注意: 「次へ」クリック後に画面が遷移しない場合、ネイティブダイアログ(alert/confirm)が表示されている可能性がある。技術的な知見の「ネイティブダイアログの検知と対処」を参照。
⚠️ Native dialog warning: If screen does not transition after clicking "Next", a native dialog (alert/confirm) may be displayed. Refer to "Detection and Handling of Native Dialogs" in Technical Insights.

/kessan/ac/pre/ac0300: 決算書の種類選択

/kessan/ac/pre/ac0300: Select Financial Statement Type

ラジオボタン:
  • 青色申告決算書 ← 青色申告の場合
  • 収支内訳書(白色申告の場合)
  • 青色申告決算書(現金主義用)
Radio buttons:
  • Blue Return Financial Statement ← For blue return filers
  • Income Statement (For white return filers)
  • Blue Return Financial Statement (For cash basis)

/kessan/ac/aa0200: 損益計算書(P/L)の入力

/kessan/ac/aa0200: Input Profit and Loss Statement (P/L)

URL:
https://www.keisan.nta.go.jp/kessan/ac/aa0200#bsctrl
URL:
https://www.keisan.nta.go.jp/kessan/ac/aa0200#bsctrl

期間の入力

Period Input

フィールドnameデフォルト
開始月
sonekiKeisansyoFromMonth
1
開始日
sonekiKeisansyoFromDay
1
終了月
sonekiKeisansyoToMonth
12
終了日
sonekiKeisansyoToDay
31
FieldnameDefault
Start month
sonekiKeisansyoFromMonth
1
Start day
sonekiKeisansyoFromDay
1
End month
sonekiKeisansyoToMonth
12
End day
sonekiKeisansyoToDay
31

売上(収入)金額

Sales (Revenue) Amount

「入力」ボタン →
/kessan/ac/aa0201
売上仕入月別入力サブページに遷移。
aa0201 のフィールド:
  • uriageKingaku1
    uriageKingaku12
    : 月別売上
  • siireKingaku1
    siireKingaku12
    : 月別仕入
  • kajisyohi
    : 家事消費等
  • zatusyunyu
    : 雑収入
合計:
uriageKingakuGokei
,
siireKingakuGokei
Click "Input" button → Transition to
/kessan/ac/aa0201
monthly sales/purchase input subpage.
Fields for aa0201:
  • uriageKingaku1
    ~
    uriageKingaku12
    : Monthly sales
  • siireKingaku1
    ~
    siireKingaku12
    : Monthly purchases
  • kajisyohi
    : Household expenses, etc.
  • zatusyunyu
    : Miscellaneous income
Totals:
uriageKingakuGokei
,
siireKingakuGokei

経費(行8〜31)

Expenses (Rows 8~31)

科目name(直接入力)備考
8租税公課
sozeiKoka
9荷造運賃
nidukuriUntin
10水道光熱費
suidoKonetuhi
11旅費交通費
ryohiKotuhi
12通信費
tusinhi
13広告宣伝費
kokokuSendenhi
14接待交際費
settaiKosaihi
15損害保険料
songaiHokenryo
16修繕費
syuzenhi
17消耗品費
syomohinhi
18減価償却費「入力」→
/kessan/ac/init/aa0203
19福利厚生費
fukuriKoseihi
20給料賃金「入力」→
/kessan/ac/aa0205
21外注工賃
gaichukotin
22利子割引料「入力」→
/kessan/ac/aa0206
23地代家賃「入力」→
/kessan/ac/aa0207
24貸倒金
kasidaorekin
25税理士等の報酬
keihiNiniKingaku1
科目名:
keihiNiniKamoku1
26震災関連経費
keihiNiniKingaku2
科目名:
keihiNiniKamoku2
27-30任意科目
keihiNiniKingaku3
6
科目名:
keihiNiniKamoku3
6
31雑費
zappi
集計 hidden フィールド:
keihiSannyugakuGokei
,
kyuryoTinginTotalGokei
,
risiWaribikiryoGokei
,
tidaiYatinGokei
RowItemname (direct input)Notes
8Taxes and public dues
sozeiKoka
9Packing and transportation expenses
nidukuriUntin
10Water, light, and heat expenses
suidoKonetuhi
11Travel and transportation expenses
ryohiKotuhi
12Communication expenses
tusinhi
13Advertising and promotion expenses
kokokuSendenhi
14Entertainment expenses
settaiKosaihi
15Property insurance premiums
songaiHokenryo
16Repair expenses
syuzenhi
17Supplies expenses
syomohinhi
18Depreciation expenses"Input" →
/kessan/ac/init/aa0203
19Welfare expenses
fukuriKoseihi
20Salaries and wages"Input" →
/kessan/ac/aa0205
21Outsourcing expenses
gaichukotin
22Interest and discount fees"Input" →
/kessan/ac/aa0206
23Rent expenses"Input" →
/kessan/ac/aa0207
24Bad debt expenses
kasidaorekin
25Fees for tax accountants, etc.
keihiNiniKingaku1
Item name:
keihiNiniKamoku1
26Earthquake-related expenses
keihiNiniKingaku2
Item name:
keihiNiniKamoku2
27-30Optional items
keihiNiniKingaku3
~
6
Item names:
keihiNiniKamoku3
~
6
31Miscellaneous expenses
zappi
Aggregation hidden fields:
keihiSannyugakuGokei
,
kyuryoTinginTotalGokei
,
risiWaribikiryoGokei
,
tidaiYatinGokei

繰戻額等

Carryback amounts, etc.

  • kurimodosiNiniKamoku1
    /
    kurimodosiNiniKingaku1
  • kurimodosiNiniKamoku2
    /
    kurimodosiNiniKingaku2
  • kurimodosiNiniKamoku1
    /
    kurimodosiNiniKingaku1
  • kurimodosiNiniKamoku2
    /
    kurimodosiNiniKingaku2

専従者給与

Dedicated employee salaries

  • senjusyaKyuyoTotalGokei
    (hidden、「入力」ボタンで別画面)
  • kasidaoreKuriireGokei
    (hidden)
  • senjusyaKyuyoTotalGokei
    (hidden, separate screen via "Input" button)
  • kasidaoreKuriireGokei
    (hidden)

計算結果(自動)

Calculation Results (Automatic)

  • disp_aoiroKojomaeSyotokuKingaku
    = 売上 - 売上原価 - 経費 + 繰戻額 - 専従者給与等
  • disp_aoiroKojomaeSyotokuKingaku
    = Sales - Cost of goods sold - Expenses + Carryback amounts - Dedicated employee salaries, etc.

/kessan/ac/submit/aa0100: 青色申告特別控除

/kessan/ac/submit/aa0100: Blue Return Special Deduction

Q&A形式で控除額を選択:
選択肢value条件
10万円2
55万円3
65万円1e-Tax送信が必須。書面提出ではエラー KS-E10089
フィールド:
aoiroTokubetuKojoSentakugaku
65万円を選択する場合、電子帳簿保存または e-Tax 送信が条件。
⚠️ ネイティブダイアログ注意: 65万円を選択して次へ進むと、書面提出の場合は KS-E10089(e-Tax送信が必要)のネイティブダイアログが表示される。画面が遷移しない場合はダイアログの有無をユーザーに確認すること。
Select deduction amount in Q&A format:
OptionvalueCondition
¥100,0002
¥550,0003
¥650,0001e-Tax filing is required. Error KS-E10089 for paper filing
Field:
aoiroTokubetuKojoSentakugaku
If selecting ¥650,000, electronic book storage or e-Tax filing is required.
⚠️ Native dialog warning: If you select ¥650,000 and proceed, a native dialog with error KS-E10089 (e-Tax filing required) will be displayed for paper filing. If screen does not transition, confirm with user whether dialog is displayed.

貸借対照表(B/S)の入力

Input Balance Sheet (B/S)

URL:
/kessan/ac/preAoiroCalc
URL:
/kessan/ac/preAoiroCalc

資産の部

Assets Section

配列形式:
sisannobuTaisyohyoDetailDataList[N].kisyuKingaku
/
.kimatuKingaku
index勘定科目
0現金
1当座預金
2定期預金
3その他の預金
4受取手形
5売掛金
6有価証券
7棚卸資産
8前払金
9貸付金
10建物
11建物附属設備
12機械装置
13車両運搬具
14工具器具備品
15土地
16-23任意科目
Array format:
sisannobuTaisyohyoDetailDataList[N].kisyuKingaku
/
.kimatuKingaku
indexAccount Item
0Cash
1Current deposits
2Time deposits
3Other deposits
4Notes receivable
5Accounts receivable
6Securities
7Inventory assets
8Prepaid expenses
9Loans receivable
10Buildings
11Building附属设备
12Machinery and equipment
13Vehicles and transportation equipment
14Tools, fixtures, and supplies
15Land
16-23Optional items

負債・資本の部

Liabilities and Equity Section

配列形式:
fusainobuTaisyohyoDetailDataList[N].kisyuKingaku
/
.kimatuKingaku
index勘定科目
0支払手形
1買掛金
2借入金
3未払金
4前受金
5預り金
6貸倒引当金
7-15任意科目
16元入金
17事業主借
18事業主貸
19青色申告特別控除前の所得金額(P/Lから自動)
重要: 資産期末合計 = 負債期末合計 が必須(KS-E40003)
⚠️ ネイティブダイアログ注意: 資産期末合計と負債期末合計が一致しない状態で「次へ」を押すと、KS-E40003 のネイティブダイアログが表示される。画面が遷移しない場合はダイアログの有無をユーザーに確認すること。
Array format:
fusainobuTaisyohyoDetailDataList[N].kisyuKingaku
/
.kimatuKingaku
indexAccount Item
0Notes payable
1Accounts payable
2Loans payable
3Accrued expenses
4Unearned revenue
5Deposits received
6Allowance for bad debts
7-15Optional items
16Capital contributions
17Owner's drawings
18Owner's capital
19Income before blue return special deduction (automatic from P/L)
Important: Total assets at end of period must equal total liabilities at end of period (KS-E40003)
⚠️ Native dialog warning: If you click "Next" after B/S input and total assets do not equal total liabilities, a native dialog with error KS-E40003 will be displayed. If screen does not transition, confirm with user whether dialog is displayed.

/kessan/ac/ac0500: 住所・氏名等の入力

/kessan/ac/ac0500: Input Address, Name, etc.

フィールドname
郵便番号
jitakuZip
都道府県
jitakuPrefectureId
市区町村以下
jitakuAddress
事業所住所(該当者)
jimusyoAddress
提出先税務署
zeimusyoName
氏名漢字(姓)
nameKanjiSei
氏名漢字(名)
nameKanjiMei
業種名
gyosyuName
屋号
yago
提出年月日
teisyutuYear
/
teisyutuMonth
/
teisyutuDay
Fieldname
Postal code
jitakuZip
Prefecture
jitakuPrefectureId
Municipality and below
jitakuAddress
Business office address (if applicable)
jimusyoAddress
Tax office to submit to
zeimusyoName
Name in kanji (last)
nameKanjiSei
Name in kanji (first)
nameKanjiMei
Industry name
gyosyuName
Trade name
yago
Submission date
teisyutuYear
/
teisyutuMonth
/
teisyutuDay

決算書完了 → 所得税コーナーへ

Financial Statement Completion → Transition to Income Tax Corner

印刷・データ保存画面(
/kessan/ac/submit/ac0600
)の 「所得税の申告書作成はこちら」ボタンで所得税コーナーに遷移(住所氏名引継ぎ)。
⚠️ ネイティブダイアログ注意: このボタンをクリックすると KS-W10035(印刷を確認したか)のネイティブダイアログが表示される場合がある。画面が遷移しない場合はダイアログの有無をユーザーに確認し、「OK」をクリックするよう案内すること。

Click the "Create income tax return here" button on the print/data save screen (
/kessan/ac/submit/ac0600
) to transition to the income tax corner (address and name are carried over).
⚠️ Native dialog warning: When clicking this button, a native dialog with warning KS-W10035 (Have you confirmed printing?) may be displayed. If screen does not transition, confirm with user whether dialog is displayed and guide them to click "OK".

ステップ3: 所得税の申告書入力

Step 3: Input Income Tax Return

⚠️ ネイティブダイアログ注意: 「次へ」クリック後に画面が遷移しない場合、ネイティブダイアログ(alert/confirm)が表示されている可能性がある。技術的な知見の「ネイティブダイアログの検知と対処」を参照。
⚠️ Native dialog warning: If screen does not transition after clicking "Next", a native dialog (alert/confirm) may be displayed. Refer to "Detection and Handling of Native Dialogs" in Technical Insights.

SS-AA-010a: 申告する所得の選択等

SS-AA-010a: Select Income to Declare, etc.

URL:
https://www.keisan.nta.go.jp/r7/syotoku/taM010a40_doInitialDisplay#bbctrl
URL:
https://www.keisan.nta.go.jp/r7/syotoku/taM010a40_doInitialDisplay#bbctrl

生年月日

Date of Birth

フィールドname
inOutDto.shnkkBirthymdYy
inOutDto.shnkkBirthymdMm
inOutDto.shnkkBirthymdDd
Fieldname
Year
inOutDto.shnkkBirthymdYy
Month
inOutDto.shnkkBirthymdMm
Day
inOutDto.shnkkBirthymdDd

所得種類の選択(チェックボックス)

Income Type Selection (Checkboxes)

所得name典型的な選択
給与
inOutDto.kyuy
会社員: checked
事業(営業等)
inOutDto.jgyoEgyoTo
個人事業主: checked
事業(農業)
inOutDto.jgyoNogyo
不動産
inOutDto.fdosn
雑(業務・その他)
inOutDto.ztsGyomSnt
暗号資産等: checked
公的年金等
inOutDto.kotkNnknKgyoNnknEtc
退職金
inOutDto.tasyku
株式等
inOutDto.hatoKbshkJyotRsh
先物取引
inOutDto.skmnTrhk
一時
inOutDto.ichj
shinkoku 対象の典型パターン:
  • 会社員+副業(事業所得):
    kyuy
    +
    jgyoEgyoTo
    +
    ztsGyomSnt
    (暗号資産あれば)
  • 給与所得のみ:
    kyuy
IncomenameTypical Selection
Salary
inOutDto.kyuy
Company employee: checked
Business (sales, etc.)
inOutDto.jgyoEgyoTo
Sole proprietor: checked
Business (agriculture)
inOutDto.jgyoNogyo
Real estate
inOutDto.fdosn
Miscellaneous (fees, etc.)
inOutDto.ztsGyomSnt
Cryptocurrency, etc.: checked
Public pensions, etc.
inOutDto.kotkNnknKgyoNnknEtc
Retirement allowance
inOutDto.tasyku
Stocks, etc.
inOutDto.hatoKbshkJyotRsh
Futures transactions
inOutDto.skmnTrhk
Temporary
inOutDto.ichj
Typical Patterns for shinkoku:
  • Company employee + side business (business income):
    kyuy
    +
    jgyoEgyoTo
    +
    ztsGyomSnt
    (if cryptocurrency)
  • Salary income only:
    kyuy

SS-AA-050: 収入・所得の入力ハブ

SS-AA-050: Income/Income Input Hub

選択した所得種類ごとに入力リンクが表示される。各リンクをクリックして個別入力画面へ遷移。
Input links are displayed for each selected income type. Click each link to transition to individual input screens.

SS-CA-010: 給与所得の源泉徴収票の入力

SS-CA-010: Input Withholding Tax Statement for Salary Income

URL:
https://www.keisan.nta.go.jp/r7/syotoku/taS510a10_doAdd_nncyzm#bbctrl
URL:
https://www.keisan.nta.go.jp/r7/syotoku/taS510a10_doAdd_nncyzm#bbctrl

主要入力フィールド

Main Input Fields

ラベルname備考
A: 支払金額
inOutDto.shhraKngk
必須
D: 源泉徴収税額
inOutDto.gnsnTyosyuZegk
社会保険料等の金額
inOutDto.sykaHknryoToKngk
G: 支払者の住所
inOutDto.shhrasyJysyKysyOrSyzach
28文字以内
H: 支払者の氏名又は名称
inOutDto.shhrasyNameOrMesyo
28文字以内
LabelnameNotes
A: Payment amount
inOutDto.shhraKngk
Required
D: Withholding tax amount
inOutDto.gnsnTyosyuZegk
Amount of social insurance premiums, etc.
inOutDto.sykaHknryoToKngk
G: Payer's address
inOutDto.shhrasyJysyKysyOrSyzach
Within 28 characters
H: Payer's name or trade name
inOutDto.shhrasyNameOrMesyo
Within 28 characters

条件付きフィールド(ラジオで「記載あり」選択時に表示)

Conditional Fields (Displayed when "Yes" is selected via radio button)

ラベルname表示条件
生命保険料控除額
inOutDto.semeHknryoKojygk
semeHknryoKojygkKsaUm=1
新生命保険料金額
inOutDto.shnSemeHknryoKngk
上記あり
旧生命保険料金額
inOutDto.kyuSemeHknryoKngk
上記あり
介護医療保険料金額
inOutDto.kagIryoHknryoKngk
上記あり
新個人年金保険料金額
inOutDto.shnKjnNnknHknryoKngk
上記あり
旧個人年金保険料金額
inOutDto.kyuKjnNnknHknryoKngk
上記あり
地震保険料控除額
inOutDto.jshnHknryoKojygk
jshnHknryoKojygkKsaUm=1
住宅借入金等特別控除額
inOutDto.jyutkKrirknToTkbtsKojyGk
jyutkKrirknToTkbtsKojyGkKsaUm=1
LabelnameDisplay Condition
Life insurance premium deduction amount
inOutDto.semeHknryoKojygk
semeHknryoKojygkKsaUm=1
New life insurance premium amount
inOutDto.shnSemeHknryoKngk
Above is yes
Old life insurance premium amount
inOutDto.kyuSemeHknryoKngk
Above is yes
Long-term care insurance premium amount
inOutDto.kagIryoHknryoKngk
Above is yes
New individual pension insurance premium amount
inOutDto.shnKjnNnknHknryoKngk
Above is yes
Old individual pension insurance premium amount
inOutDto.kyuKjnNnknHknryoKngk
Above is yes
Earthquake insurance premium deduction amount
inOutDto.jshnHknryoKojygk
jshnHknryoKojygkKsaUm=1
Special deduction for housing loans, etc.
inOutDto.jyutkKrirknToTkbtsKojyGk
jyutkKrirknToTkbtsKojyGkKsaUm=1

ラジオボタン(記載有無の選択)

Radio Buttons (Selection of presence/absence of description)

フィールドname
控除対象配偶者の記載
inOutDto.kojyTashoHagsyKsaUm
1(あり)/2(なし)
控除対象扶養親族の記載
inOutDto.kojyTashoFyoShnzkKsaUm
1(あり)/2(なし)
生命保険料控除額の記載
inOutDto.semeHknryoKojygkKsaUm
1(あり)/2(なし)
地震保険料控除額の記載
inOutDto.jshnHknryoKojygkKsaUm
1(あり)/2(なし)
住宅借入金等特別控除額の記載
inOutDto.jyutkKrirknToTkbtsKojyGkKsaUm
1(あり)/0(なし)
FieldnameValue
Description of spouse eligible for deduction
inOutDto.kojyTashoHagsyKsaUm
1(Yes)/2(No)
Description of dependents eligible for deduction
inOutDto.kojyTashoFyoShnzkKsaUm
1(Yes)/2(No)
Description of life insurance premium deduction amount
inOutDto.semeHknryoKojygkKsaUm
1(Yes)/2(No)
Description of earthquake insurance premium deduction amount
inOutDto.jshnHknryoKojygkKsaUm
1(Yes)/2(No)
Description of special deduction for housing loans, etc.
inOutDto.jyutkKrirknToTkbtsKojyGkKsaUm
1(Yes)/0(No)

SS-AA-070a: 控除の入力(1/2)— 支出系控除

SS-AA-070a: Input Deductions (1/2) — Expense-based Deductions

入力リンクのハブ画面。各控除をクリックして個別入力画面に遷移。
対応控除:
  • 社会保険料控除(源泉徴収票入力済みの場合「入力あり」表示)
  • 小規模企業共済等掛金控除(iDeCo等)
  • 生命保険料控除
  • 地震保険料控除
  • 雑損控除・災害減免
  • 医療費控除
  • 寄附金控除(ふるさと納税含む — ワンストップ特例分も要入力)
Hub screen with input links. Click each deduction to transition to individual input screens.
Supported deductions:
  • Social insurance premium deduction (displayed as "Input done" if already input via withholding tax statement)
  • Small business mutual aid premium deduction (iDeCo, etc.)
  • Life insurance premium deduction
  • Earthquake insurance premium deduction
  • Casualty loss deduction / Disaster relief
  • Medical expense deduction
  • Donation deduction (including hometown tax payment — one-stop special case also needs input)

SS-AA-080: 控除の入力(2/2)— 人的控除・住宅控除等

SS-AA-080: Input Deductions (2/2) — Personal Deductions, Housing Deductions, etc.

対応控除:
  • 配偶者(特別)控除
  • 扶養控除・特定親族特別控除
  • 寡婦・ひとり親控除
  • 勤労学生控除
  • 障害者控除
  • 基礎控除(自動計算表示)
  • 住宅借入金等特別控除
  • 住宅耐震改修特別控除等
  • 予定納税額
  • 繰越損失額
Supported deductions:
  • Spouse (special) deduction
  • Dependent deduction / Special deduction for specified relatives
  • Widow/single parent deduction
  • Working student deduction
  • Disability deduction
  • Basic deduction (automatic calculation display)
  • Special deduction for housing loans, etc.
  • Special deduction for seismic retrofitting of housing, etc.
  • Estimated tax payment amount
  • Carryforward loss amount

SS-AA-090: 計算結果の確認

SS-AA-090: Confirm Calculation Results

入力内容から計算された所得税額の確認画面。
表示項目:
  • 収入金額・所得金額(所得種類別)
  • 所得控除合計
  • 課税される所得金額(1,000円未満切捨て)
  • 上記に対する税額(速算表適用)
  • 差引所得税額
  • 復興特別所得税額(基準所得税額の2.1%)
  • 所得税及び復興特別所得税の額
  • 源泉徴収税額
  • 申告納税額(100円未満切捨て)/ 還付される税金
ここで shinkoku の計算結果と照合する(後述「ステップ5: 申告内容の確認」参照)。
各セクションに「訂正する」ボタンがあり、前画面に戻れる。
Screen to confirm income tax amount calculated from input contents.
Display items:
  • Income amount/income amount (by income type)
  • Total income deductions
  • Taxable income amount (rounded down to nearest ¥1,000)
  • Tax amount on above (using tax table)
  • Net income tax amount
  • Special reconstruction income tax amount (2.1% of base income tax amount)
  • Amount of income tax and special reconstruction income tax
  • Withholding tax amount
  • Declared tax payment amount (rounded down to nearest ¥100) / Tax refund amount
Compare with shinkoku calculation results here (refer to "Step 5: Confirm Declaration Contents" below).
Each section has a "Correct" button to return to previous screen.

SS-AC-010a: 納付方法等の入力

SS-AC-010a: Input Payment Method, etc.

納付金額が発生した場合に表示。還付の場合は還付口座入力画面(SS-AB-010a)が表示される。
フィールドtypename備考
延納を届け出るcheckbox利子税がかかる旨の注意あり
納付方法select
inOutDto.nofHoho
必須
納付方法の選択肢:
value方法
1振替納税(期限内申告の場合に利用可)
2電子納税(ダイレクト納付/インターネットバンキング)
3クレジットカード納付
5コンビニ納付
6金融機関等での窓口納付
還付の場合は還付口座情報の入力:
  • 金融機関名、支店名、口座番号、口座名義
Displayed if payment amount is incurred. If refund is due, refund account input screen (SS-AB-010a) is displayed.
FieldtypenameNotes
Apply for tax defermentcheckboxNote that interest tax will be charged
Payment methodselect
inOutDto.nofHoho
Required
Payment method options:
valueMethod
1Transfer tax payment (available for timely declarations)
2Electronic tax payment (direct payment/internet banking)
3Credit card payment
5Convenience store payment
6Over-the-counter payment at financial institutions, etc.
If refund is due, input refund account information:
  • Financial institution name, branch name, account number, account holder name

SS-AC-020a: 財産債務・住民税等

SS-AC-020a: Assets and Liabilities, Resident Tax, etc.

住民税に関する設定(給与からの特別徴収 or 自分で納付 等)。
Settings related to resident tax (special collection from salary or self-payment, etc.).

SS-AC-030: 基本情報の入力

SS-AC-030: Input Basic Information

ラベルname備考
氏名フリガナ(姓)
inOutDto.nameKnSe
11文字以内
氏名フリガナ(名)
inOutDto.nameKnMe
氏名漢字(姓)
inOutDto.nameKnjSe
10文字以内
氏名漢字(名)
inOutDto.nameKnjMe
電話番号(種別)
inOutDto.rnrkSkKbn
自宅/勤務先/携帯
電話番号(市外)
inOutDto.shgaKykbn
電話番号(市内)
inOutDto.shnaKykbn
電話番号(番号)
inOutDto.knyusyBngo
納税地区分
inOutDto.nozeCh
1=住所地, 2=事業所等
郵便番号
inOutDto.yubnBngoGnzaAddress
7桁
都道府県
inOutDto.tdofknGnzaAddress
select
市区町村
inOutDto.shkcyosnGnzaAddress
都道府県連動 select
丁目番地等
inOutDto.cyomBnchToGnzaAddress
28文字以内
建物名
inOutDto.ttmnMeGoshtsGnzaAddress
28文字以内
提出先税務署(県)
inOutDto.tesytSkZemsyTdofkn
select
提出先税務署
inOutDto.tesytSkZemsyZemsy
県連動 select
職業
inOutDto.job
11文字以内
屋号・雅号
inOutDto.ygoGgo
30文字以内
世帯主の氏名
inOutDto.stanshNameKnj
続柄
inOutDto.stanshKrTsdkgr
select
提出年月日
inOutDto.tesytYmdYy
/
Mm
/
Dd
LabelnameNotes
Name in katakana (last)
inOutDto.nameKnSe
Within 11 characters
Name in katakana (first)
inOutDto.nameKnMe
Name in kanji (last)
inOutDto.nameKnjSe
Within 10 characters
Name in kanji (first)
inOutDto.nameKnjMe
Phone number type
inOutDto.rnrkSkKbn
Home/work/mobile
Phone number (area code)
inOutDto.shgaKykbn
Phone number (local number)
inOutDto.shnaKykbn
Phone number (line number)
inOutDto.knyusyBngo
Tax payment location category
inOutDto.nozeCh
1=Residence, 2=Business office, etc.
Postal code
inOutDto.yubnBngoGnzaAddress
7 digits
Prefecture
inOutDto.tdofknGnzaAddress
select
Municipality
inOutDto.shkcyosnGnzaAddress
select linked to prefecture
Chome, block, etc.
inOutDto.cyomBnchToGnzaAddress
Within 28 characters
Building name
inOutDto.ttmnMeGoshtsGnzaAddress
Within 28 characters
Tax office to submit to (prefecture)
inOutDto.tesytSkZemsyTdofkn
select
Tax office to submit to
inOutDto.tesytSkZemsyZemsy
select linked to prefecture
Occupation
inOutDto.job
Within 11 characters
Trade name/pen name
inOutDto.ygoGgo
Within 30 characters
Head of household's name
inOutDto.stanshNameKnj
Relationship
inOutDto.stanshKrTsdkgr
select
Submission date
inOutDto.tesytYmdYy
/
Mm
/
Dd

SS-AC-040: マイナンバーの入力

SS-AC-040: Input My Number

マイナンバー(12桁)を入力する画面。チェックディジットアルゴリズムによる検証あり。

Screen to input My Number (12 digits). Verification via check digit algorithm is performed.

ステップ4: 消費税の申告書入力(該当者のみ)

Step 4: Input Consumption Tax Return (If applicable)

⚠️ ネイティブダイアログ注意: 「次へ」クリック後に画面が遷移しない場合、ネイティブダイアログ(alert/confirm)が表示されている可能性がある。技術的な知見の「ネイティブダイアログの検知と対処」を参照。
所得税申告書の完了後、「他の申告書等を作成する」→
doSubmitCSW0900(3,'25')
で消費税コーナーに遷移。
⚠️ Native dialog warning: If screen does not transition after clicking "Next", a native dialog (alert/confirm) may be displayed. Refer to "Detection and Handling of Native Dialogs" in Technical Insights.
After completing income tax return, transition to consumption tax corner by selecting "Create other return forms" →
doSubmitCSW0900(3,'25')
.

ac0100: 条件判定等

ac0100: Condition Determination, etc.

URL:
https://www.keisan.nta.go.jp/syouhi/ac0100/submit.htmj#bsctrl
フィールドname備考
基準期間の課税売上高
kijunKazeiUriage
R5年分
インボイス発行事業者
invoice
true/false
簡易課税制度選択
kani
true/false
経理方式
zeikomi
税込/税抜
URL:
https://www.keisan.nta.go.jp/syouhi/ac0100/submit.htmj#bsctrl
FieldnameNotes
Taxable sales for base period
kijunKazeiUriage
FY2023
Invoice-issuing business operator
invoice
true/false
Select simplified taxation system
kani
true/false
Accounting method
zeikomi
Tax-included/tax-excluded

インボイス=はい の場合に追加表示

Additional display if invoice=yes

フィールドname備考
新たに課税事業者か
newKazeiJigyosya
true/false
2割特例を適用するか
niwariTokurei
true/false
FieldnameNotes
New taxable business operator?
newKazeiJigyosya
true/false
Apply 20% special provision?
niwariTokurei
true/false

一般課税の場合に追加表示

Additional display for standard taxation

フィールドname備考
仕入税額の計算方法
siireKeisanHouhou
warimodosi/tumiage
FieldnameNotes
Input tax credit calculation method
siireKeisanHouhou
warimodosi/tumiage

条件判定画面の表示ロジック(基準期間による分岐)

Display logic for condition determination screen (branch by base period)

kijunKazeiUriage
(基準期間の課税売上高)の値によって表示される選択肢が変化する:
条件新規課税事業者?2割特例?簡易課税?
基準期間=0, invoice=はい表示表示非表示
基準期間=3,000,000, invoice=はい表示表示表示
基準期間=60,000,000, invoice=はい非表示非表示表示
一般課税のみ: 「税額の計算方法として積上げ計算を選択する方」ボタン(折りたたみセクション内)
Displayed options change depending on
kijunKazeiUriage
(taxable sales for base period):
ConditionNew taxable business operator?20% special provision?Simplified taxation?
Base period=0, invoice=yesDisplayDisplayNot displayed
Base period=3,000,000, invoice=yesDisplayDisplayDisplay
Base period=60,000,000, invoice=yesNot displayedNot displayedDisplay
Standard taxation only: Button for "Those who select cumulative calculation as tax amount calculation method" (within collapsible section)

分岐ロジック

Branch Logic

条件遷移先ルート
インボイス=はい & 2割特例=はい2割特例
簡易課税=はい簡易課税
上記以外一般課税
ConditionTransition route
Invoice=yes & 20% special provision=yes20% Special Provision
Simplified taxation=yesSimplified Taxation
Other than aboveStandard Taxation

ac0250: 所得区分の選択

ac0250: Select Income Category

URL:
https://www.keisan.nta.go.jp/syouhi/ac0250/submit.htmj#bsctrl
該当する所得区分を全て選択する。ヘッダに課税方式(一般課税/簡易課税)と経理方式(税込/税抜)が表示される。
ラベルname備考
事業所得(営業等)
jigyoSyotokuEigyo
メインターゲット
事業所得(農業)
jigyoSyotokuNogyo
不動産所得
fudosanSyotoku
雑所得(原稿料等)
zatuSyotoku
業務用固定資産等の譲渡所得
jotoSyotoku
一般課税のみ表示
URL:
https://www.keisan.nta.go.jp/syouhi/ac0250/submit.htmj#bsctrl
Select all applicable income categories. Taxation method (standard/simplified) and accounting method (tax-included/tax-excluded) are displayed in the header.
LabelnameNotes
Business income (sales, etc.)
jigyoSyotokuEigyo
Main target
Business income (agriculture)
jigyoSyotokuNogyo
Real estate income
fudosanSyotoku
Miscellaneous income (royalties, etc.)
zatuSyotoku
Capital gains from business fixed assets, etc.
jotoSyotoku
Displayed only for standard taxation

簡易課税のみ: 事業区分の選択

Simplified taxation only: Select business category

簡易課税の場合、各所得区分に対して事業区分(第1種〜第6種)のサブ選択がある:
フィールドname備考
事業区分(第1種)
jigyoSyotokuEigyoJigyoKubun1
卸売業
事業区分(第2種)
jigyoSyotokuEigyoJigyoKubun2
小売業
事業区分(第3種)
jigyoSyotokuEigyoJigyoKubun3
製造業等
事業区分(第4種)
jigyoSyotokuEigyoJigyoKubun4
その他
事業区分(第5種)
jigyoSyotokuEigyoJigyoKubun5
サービス業等
事業区分(第6種)
jigyoSyotokuEigyoJigyoKubun6
不動産業
For simplified taxation, there are sub-selections for business category (Type 1~6) for each income category:
FieldnameNotes
Business category (Type 1)
jigyoSyotokuEigyoJigyoKubun1
Wholesale business
Business category (Type 2)
jigyoSyotokuEigyoJigyoKubun2
Retail business
Business category (Type 3)
jigyoSyotokuEigyoJigyoKubun3
Manufacturing, etc.
Business category (Type 4)
jigyoSyotokuEigyoJigyoKubun4
Other
Business category (Type 5)
jigyoSyotokuEigyoJigyoKubun5
Service business, etc.
Business category (Type 6)
jigyoSyotokuEigyoJigyoKubun6
Real estate business

一般課税のみ: 業務用固定資産等

Standard taxation only: Business fixed assets, etc.

フィールドname備考
業務用固定資産等の購入がある
gyomuyosisanKonyu
checkbox
FieldnameNotes
Purchases of business fixed assets, etc.
gyomuyosisanKonyu
checkbox

売上入力(全ルート共通フォーム)

Sales Input (Common Form for All Routes)

URL パターン:
  • 2割特例:
    /syouhi/at3600/inputEigyo.htmj
  • 簡易課税:
    /syouhi/ak3600/inputEigyo.htmj
  • 一般課税:
    /syouhi/ai3600/inputEigyo.htmj
フィールドname備考
売上(収入)金額
uriageWari
必須。税込総額
免税売上
menzeiUriageWari
非課税売上
hikazeiUriageWari
不課税取引
jigyoFukazeiUriageWari
軽減税率(6.24%)適用分
kazeiUriage624PercentWari
返還等対価(軽減)
uriageTaikaKeigen.uriageTaika624Percent
返還等対価(標準)
uriageTaikaKeigen.uriageTaika78Percent
貸倒れ発生(軽減)
kasidaoreKeigen.occurredKasidaore624Percent
2割特例・簡易課税のみ
貸倒れ発生(標準)
kasidaoreKeigen.occurredKasidaore78Percent
2割特例・簡易課税のみ
貸倒れ回収(軽減)
kasidaoreKeigen.recoveredKasidaore624Percent
2割特例・簡易課税のみ
貸倒れ回収(標準)
kasidaoreKeigen.recoveredKasidaore78Percent
2割特例・簡易課税のみ
貸倒れ発生有無
kasidaore.occurredKasidaoreAns
2割特例・簡易課税のみ (radio)
URL patterns:
  • 20% Special Provision:
    /syouhi/at3600/inputEigyo.htmj
  • Simplified Taxation:
    /syouhi/ak3600/inputEigyo.htmj
  • Standard Taxation:
    /syouhi/ai3600/inputEigyo.htmj
FieldnameNotes
Sales (revenue) amount
uriageWari
Required. Total tax-included amount
Tax-exempt sales
menzeiUriageWari
Non-taxable sales
hikazeiUriageWari
Exempt transactions
jigyoFukazeiUriageWari
Reduced tax rate (6.24%) applicable amount
kazeiUriage624PercentWari
Consideration for returns, etc. (reduced)
uriageTaikaKeigen.uriageTaika624Percent
Consideration for returns, etc. (standard)
uriageTaikaKeigen.uriageTaika78Percent
Bad debt occurrence (reduced)
kasidaoreKeigen.occurredKasidaore624Percent
Only for 20% special provision/simplified taxation
Bad debt occurrence (standard)
kasidaoreKeigen.occurredKasidaore78Percent
Only for 20% special provision/simplified taxation
Bad debt recovery (reduced)
kasidaoreKeigen.recoveredKasidaore624Percent
Only for 20% special provision/simplified taxation
Bad debt recovery (standard)
kasidaoreKeigen.recoveredKasidaore78Percent
Only for 20% special provision/simplified taxation
Presence/absence of bad debt occurrence
kasidaore.occurredKasidaoreAns
Only for 20% special provision/simplified taxation (radio)

一般課税のみの追加フィールド

Additional fields for standard taxation only

フィールドname備考
非課税返還
uriageTaikaKeigen.hikazeiHenkan
非課税資産の輸出等返還
uriageTaikaKeigen.hikazeiSisanHenkan
FieldnameNotes
Non-taxable returns
uriageTaikaKeigen.hikazeiHenkan
Returns of non-taxable assets, etc.
uriageTaikaKeigen.hikazeiSisanHenkan

中間納付税額等の入力(全ルート共通)

Input Interim Payment Tax Amount, etc. (Common to All Routes)

name備考
chukanNofuZei
中間納付消費税額
chukanNofuJotoWari
中間納付譲渡割額
nameNotes
chukanNofuZei
Interim consumption tax payment amount
chukanNofuJotoWari
Interim transfer tax payment amount

一般課税(積上げ計算)専用: 決算額テーブル

Standard Taxation (Cumulative Calculation) Only: Settlement Amount Table

URL:
/syouhi/ai3610/submit.htmj
積上げ計算選択時のみ表示される大規模フォーム(194項目)。 青色申告決算書の各勘定科目に対して、決算額・課税取引金額・軽減税率分・免税事業者等取引分を入力。
フィールド名パターン:
{科目略称}{列略称}Wari
(割戻し) /
{科目略称}{列略称}Tumi
(積上げ)
列略称:
Kessan
(決算額),
KazeiIgai
(課税取引にならないもの),
Keigen624
(軽減税率分),
MenzeiKeigen
(免税事業者等/軽減),
Menzei
(免税事業者等/標準)
科目プレフィックス
仕入金額
siire
租税公課
sozeiKoka
荷造運賃
nidukuri
水道光熱費
suido
旅費交通費
ryohi
通信費
tusin
広告宣伝費
kokoku
接待交際費
settai
損害保険料
songai
修繕費
syuzen
消耗品費
syomohin
減価償却費
genkasyokyaku
福利厚生費
fukurikosei
給料賃金
kyuryo
外注工賃
gaichu
利子割引料
risiWaribiki
地代家賃
jidai
貸倒金
kasidaore
任意科目
niniKamoku25
30
雑費
zappi
URL:
/syouhi/ai3610/submit.htmj
Large-scale form (194 items) displayed only when cumulative calculation is selected. Input settlement amount, taxable transaction amount, reduced tax rate amount, and transactions with tax-exempt business operators, etc. for each account item in the blue return financial statement.
Field name pattern:
{account abbreviation}{column abbreviation}Wari
(warimodosi) /
{account abbreviation}{column abbreviation}Tumi
(tumiage)
Column abbreviations:
Kessan
(Settlement amount),
KazeiIgai
(Non-taxable transactions),
Keigen624
(Reduced tax rate),
MenzeiKeigen
(Tax-exempt business operators/reduced),
Menzei
(Tax-exempt business operators/standard)
AccountPrefix
Purchase amount
siire
Taxes and public dues
sozeiKoka
Packing and transportation expenses
nidukuri
Water, light, and heat expenses
suido
Travel and transportation expenses
ryohi
Communication expenses
tusin
Advertising and promotion expenses
kokoku
Entertainment expenses
settai
Property insurance premiums
songai
Repair expenses
syuzen
Supplies expenses
syomohin
Depreciation expenses
genkasyokyaku
Welfare expenses
fukurikosei
Salaries and wages
kyuryo
Outsourcing expenses
gaichu
Interest and discount fees
risiWaribiki
Rent expenses
jidai
Bad debt expenses
kasidaore
Optional items
niniKamoku25
~
30
Miscellaneous expenses
zappi

テーブル下の Yes/No 質問(一般課税のみ)

Yes/No questions below table (standard taxation only)

フィールドname内容
発生した貸倒金
kasidaoreKeigen.occurredKasidaoreAns
radio
回収した貸倒金
kasidaoreKeigen.recoveredKasidaoreAns
radio
保税地域からの引取貨物
hozeiKeigenIppan.hozeiAns
radio
課税仕入れに係る対価の返還等
siireTaikaKeigenIppan.siireTaikaAns
radio
課税事業者になった方の棚卸高調整
tanaorosiKeigenIppan.oldMenzeiJigyoshaAns
radio
免税事業者になる方の棚卸高調整
tanaorosiKeigenIppan.newMenzeiJigyoshaAns
radio
FieldnameContent
Bad debt occurred
kasidaoreKeigen.occurredKasidaoreAns
radio
Bad debt recovered
kasidaoreKeigen.recoveredKasidaoreAns
radio
Goods taken out from bonded area
hozeiKeigenIppan.hozeiAns
radio
Return of consideration for taxable purchases, etc.
siireTaikaKeigenIppan.siireTaikaAns
radio
Inventory adjustment for those who became taxable business operators
tanaorosiKeigenIppan.oldMenzeiJigyoshaAns
radio
Inventory adjustment for those who became tax-exempt business operators
tanaorosiKeigenIppan.newMenzeiJigyoshaAns
radio

簡易課税のみ: 仕入税額控除の控除方式の選択

Simplified Taxation Only: Select Input Tax Credit Method

URL:
/syouhi/ak2140/submit.htmj
2種以上の事業を営む場合に表示される。以下から選択:
  • 原則計算
  • 特例計算(2種特例/3種特例/75%特例)
URL:
/syouhi/ak2140/submit.htmj
Displayed if operating two or more types of businesses. Select from:
  • Standard calculation
  • Special calculation (2-type special case/3-type special case/75% special case)

ac0300: 消費税計算結果の確認

ac0300: Confirm Consumption Tax Calculation Results

全ルート共通の結果画面。ヘッダ部で「2割特例」「簡易課税」「一般課税」を表示。
表示項目:
  • 課税標準額
  • 消費税額
  • 控除税額小計
  • 差引税額(100円未満切捨て)
  • 中間納付税額
  • 納付税額
  • 地方消費税 譲渡割額(= 差引税額 × 22/78、100円未満切捨て)
  • 中間納付譲渡割額
  • 合計納付税額
Common result screen for all routes. "20% Special Provision", "Simplified Taxation", or "Standard Taxation" is displayed in the header.
Display items:
項目2割特例 (売上5M)簡易課税 第5種 (売上5M)一般課税 (売上66M, 仕入0)
Tax base amount¥4,545,000¥4,545,000¥60,000,000
Consumption tax amount¥354,510¥354,510¥4,680,000
Input tax credit subtotal¥283,608 (×80%)¥177,255 (×50%)¥0
Net tax amount¥70,900¥177,200¥4,680,00
Local consumption tax transfer amount¥19,900¥49,900¥1,320,000
Total payment amount¥90,800¥227,100¥6,000,000

一般課税のみの追加表示項目

Additional display items for standard taxation only

  • 「控除過大調整税額」
  • 「課税売上割合」セクション(課税資産の譲渡等の対価の額 / 資産の譲渡等の対価の額)
  • "Excessive input tax credit adjustment tax amount"
  • "Taxable sales ratio" section (Consideration for transfer of taxable assets, etc. / Consideration for transfer of assets, etc.)

消費税 納税地等の入力

Input Consumption Tax Payment Location, etc.

URL パターン(ルートごとに異なる):
  • 2割特例:
    /syouhi/at1400/submit.htmj
  • 簡易課税:
    /syouhi/ak1400/submit.htmj
  • 一般課税:
    /syouhi/ai1400/submit.htmj
画面は全ルートで同一構造(pageId=ac0400)。
フィールドnametype備考
納付方法
nofuHohoType
select
納税地区分
nozeitiKubun
radio
郵便番号1
nozeitiZipCode1
text
郵便番号2
nozeitiZipCode2
text
都道府県
nozeitiPrefectureCode
select住所用コード: 13=東京都
市区町村
municipalityCode
select
丁目番地等
nozeiti1ElaseMunicipal
text
税務署都道府県
prefectureCode
select税務署用コード: 15=東京都 ← 住所と異なるコード体系!
税務署
sinkokuZeimusyoCode
select
氏名カナ(姓)
simeiKanaSei
text
氏名カナ(名)
simeiKanaMei
text
氏名漢字(姓)
simeiKanjiSei
text
氏名漢字(名)
simeiKanjiMei
text
マイナンバー1
myNumber1
password
マイナンバー2
myNumber2
password
マイナンバー3
myNumber3
password
電話番号1
telNumber1
text
電話番号2
telNumber2
text
電話番号3
telNumber3
text
⚠️ 注意: 住所の都道府県コード(
nozeitiPrefectureCode
: 13=東京都)と税務署の都道府県コード(
prefectureCode
: 15=東京都)で異なるコード体系が使用されている。
URL patterns (vary by route):
  • 20% Special Provision:
    /syouhi/at1400/submit.htmj
  • Simplified Taxation:
    /syouhi/ak1400/submit.htmj
  • Standard Taxation:
    /syouhi/ai1400/submit.htmj
Screen structure is the same for all routes (pageId=ac0400).
FieldnametypeNotes
Payment method
nofuHohoType
select
Tax payment location category
nozeitiKubun
radio
Postal code 1
nozeitiZipCode1
text
Postal code 2
nozeitiZipCode2
text
Prefecture
nozeitiPrefectureCode
selectResidence code: 13=Tokyo
Municipality
municipalityCode
select
Chome, block, etc.
nozeiti1ElaseMunicipal
text
Tax office prefecture
prefectureCode
selectTax office code: 15=Tokyo ← Different code system from residence!
Tax office
sinkokuZeimusyoCode
select
Name in katakana (last)
simeiKanaSei
text
Name in katakana (first)
simeiKanaMei
text
Name in kanji (last)
simeiKanjiSei
text
Name in kanji (first)
simeiKanjiMei
text
My Number 1
myNumber1
password
My Number 2
myNumber2
password
My Number 3
myNumber3
password
Phone number 1
telNumber1
text
Phone number 2
telNumber2
text
Phone number 3
telNumber3
text
⚠️ Note: Different code systems are used for residence prefecture code (
nozeitiPrefectureCode
: 13=Tokyo) and tax office prefecture code (
prefectureCode
: 15=Tokyo).

消費税 計算結果のテストデータ

Consumption Tax Calculation Result Test Data

項目2割特例 (売上5M)簡易課税 第5種 (売上5M)一般課税 (売上66M, 仕入0)
課税標準額4,545,000円4,545,000円60,000,000円
消費税額354,510円354,510円4,680,000円
控除税額283,608円 (×80%)177,255円 (×50%)0円
差引税額70,900円177,200円4,680,000円
地方消費税譲渡割額19,900円49,900円1,320,000円
合計納付90,800円227,100円6,000,000円
Item20% Special Provision (¥5M sales)Simplified Taxation Type 5 (¥5M sales)Standard Taxation (¥66M sales, ¥0 purchases)
Tax base amount¥4,545,000¥4,545,000¥60,000,000
Consumption tax amount¥354,510¥354,510¥4,680,000
Input tax credit subtotal¥283,608 (×80%)¥177,255 (×50%)¥0
Net tax amount¥70,900¥177,200¥4,680,000
Local consumption tax transfer amount¥19,900¥49,900¥1,320,000
Total payment amount¥90,800¥227,100¥6,000,000

3ルートの計算方式の違い

Differences in Calculation Methods for Three Routes

項目2割特例簡易課税一般課税
控除税額消費税額×80%みなし仕入率実額(割戻し or 積上げ)
仕入入力不要不要割戻し: 不要 / 積上げ: 決算額テーブル
URL prefix/at****/ak****/ai****
⚠️ ネイティブダイアログ注意: 消費税コーナー終了時は 2段階のネイティブダイアログが表示される —
#otherTax
(他の申告書等を作成しますか?)と
#end
(終了してもよろしいですか?)。画面が遷移しない場合はダイアログの有無をユーザーに確認し、それぞれ適切にクリックするよう案内すること。

Item20% Special ProvisionSimplified TaxationStandard Taxation
Input tax creditConsumption tax amount ×80%Deemed purchase rateActual amount (warimodosi or tumiage)
Purchase inputNot requiredNot requiredWarimodosi: Not required / Tumiage: Settlement amount table
URL prefix/at****/ak****/ai****
⚠️ Native dialog warning: When exiting the consumption tax corner, two-stage native dialogs are displayed —
#otherTax
(Do you want to create other return forms?) and
#end
(Are you sure you want to exit?). If screen does not transition, confirm with user whether dialogs are displayed and guide them to click appropriately.

ステップ5: 申告内容の確認

Step 5: Confirm Declaration Contents

作成コーナーの確認画面で、shinkoku の計算結果と一致しているか検証する。
Verify that the contents match shinkoku calculation results on the preparation corner confirmation screen.

検証項目

Verification Items

□ 合計所得金額が一致するか
□ 所得控除合計が一致するか
□ 課税所得金額が一致するか
□ 算出税額が一致するか
□ 税額控除が一致するか
□ 復興特別所得税が一致するか
□ 申告納税額(または還付額)が一致するか
□ 消費税の納付税額が一致するか(該当者のみ)
不一致がある場合は、差異の原因を調査し、ユーザーに報告する。

□ Total income amount matches
□ Total income deductions match
□ Taxable income amount matches
□ Calculated tax amount matches
□ Tax credit matches
□ Special reconstruction income tax matches
□ Declared tax payment amount (or refund amount) matches
□ Consumption tax payment amount matches (if applicable)
If there are discrepancies, investigate the cause and report to user.

ステップ5.5: .data ファイルの保存と次ステップの選択(意思決定ゲート)

Step 5.5: Save .data File and Select Next Step (Decision Gate)

★ ユーザー確認待ち — 明示的な指示なくステップ6(電子署名・送信)に進んではならない
2段階ゲート構造: ステップ5.5 は「送信フェーズに進むかどうかの意思決定ゲート」。 ステップ6-3 は「送信ボタン直前の操作ゲート(AI は送信しない、ユーザーが手動で送信する)」。 両方のゲートを通過しない限り、送信は実行されない。
申告内容の確認が完了した時点で、以下の手順を実行する。
★ Wait for user confirmation — Do not proceed to Step 6 (Digital Signature and Transmission) without explicit instruction
Two-stage gate structure: Step 5.5 is the "decision gate for whether to proceed to the transmission phase". Step 6-3 is the "operation gate immediately before the transmission button (AI does not transmit, user transmits manually)". Transmission is not executed unless both gates are passed.
Once declaration contents are confirmed, execute the following steps.

.data ファイルのダウンロード案内

Guide to Download .data File

ユーザーに .data ファイルの保存を案内する:
申告内容の入力と確認が完了しました。

電子署名・送信に進む前に、入力データを .data ファイルとして保存することを強く推奨します。
画面上部の「入力データの一時保存」ボタン(またはページ下部の「ここまでの入力データを保存する」リンク)
をクリックし、ファイルをダウンロードしてください。
Guide user to save .data file:
Input and confirmation of declaration contents are complete.

We strongly recommend saving the input data as a .data file before proceeding to digital signature and transmission.
Click the "Temporarily save input data" button at the top of the screen (or the "Save input data up to this point" link at the bottom of the page)
and download the file.

次の操作の選択

Select Next Operation

AskUserQuestion で以下を表示する:
次の操作を選択してください。
  • 選択肢:
    • 「電子署名・送信に進む」→ ステップ6 へ
    • 「入力内容を見直す」→ 見直したいステップを確認し、該当ステップに戻る
    • 「ここで中断する」→ 中断・再開プロトコルの中断手順に従い終了する
重要: ユーザーが「電子署名・送信に進む」を明示的に選択するまで、絶対にステップ6に進まないこと。

Display the following using AskUserQuestion:
Please select the next operation.
  • Options:
    • "Proceed to digital signature and transmission" → Proceed to Step 6
    • "Review input contents" → Confirm step to review and return to applicable step
    • "Stop here" → Follow interruption procedure in Interruption/Resumption Protocol and exit
Important: Do not proceed to Step 6 until user explicitly selects "Proceed to digital signature and transmission".

ステップ6: 電子署名と送信(所得税)

Step 6: Digital Signature and Transmission (Income Tax)

前提: ステップ5.5 でユーザーが「電子署名・送信に進む」を選択済みであること。この前提が満たされていない場合はステップ5.5 に戻る。
Prerequisite: User has selected "Proceed to digital signature and transmission" in Step 5.5. If this prerequisite is not met, return to Step 5.5.

6-1: 電子署名(ユーザーの手動操作)

6-1: Digital Signature (User Manual Operation)

マイナンバーカードで電子署名する。署名用パスワード(6〜16桁の英数字)が必要。
★ ユーザー操作待ち — ブラウザ操作を一時停止
AskUserQuestion で以下を表示する:
電子署名の画面に進みます。
マイナンバーカードで電子署名を行ってください。

署名が完了したら「署名完了」を選択してください。
  • 選択肢: 「署名完了」 / 「署名で問題が発生した」
  • ユーザーが「署名完了」を選択するまで、一切のブラウザ操作を行わない
Digitally sign with My Number Card. A signature password (6-16 alphanumeric characters) is required.
★ Wait for user operation — Pause browser operation
Display the following using AskUserQuestion:
Proceeding to digital signature screen.
Perform digital signature with your My Number Card.

Please select "Signature completed" once signature is done.
  • Options: "Signature completed" / "Problem occurred during signature"
  • Do not perform any browser operations until user selects "Signature completed"

6-2: 送信前確認ページでの一次確認

6-2: Primary Confirmation on Pre-Transmission Confirmation Page

電子署名完了後、送信前の最終確認ページが表示される。
  1. ブラウザ上の確認ページの内容を読み取る
  2. 主要項目をユーザーに報告する(収入・所得・税額・納付/還付額など)
  3. shinkoku の計算結果との照合結果を報告する
After digital signature is completed, final pre-transmission confirmation page is displayed.
  1. Read contents of confirmation page on browser
  2. Report main items to user (income, income, tax amount, payment/refund amount, etc.)
  3. Report comparison results with shinkoku calculation results

6-3: ブラウザ操作の一時停止(送信はユーザー操作)

6-3: Pause Browser Operation (User Manually Transmits)

★★★ 絶対に AI が送信ボタンをクリックしてはならない ★★★ ★★★ ユーザーが「送信完了」を選択するまで、一切のブラウザ操作を行わない ★★★
★ ユーザー操作待ち — ブラウザ操作を一時停止
AskUserQuestion で以下を表示する:
送信前の申告内容確認ページが表示されています。
上記の内容をご確認ください。

問題がなければ、ご自身の操作で画面上の「送信を実行する」ボタンを
クリックしてください。

送信が完了したら「送信完了」を選択してください。
  • 選択肢: 「送信完了」 / 「入力内容を見直したい」
  • 「入力内容を見直したい」が選ばれた場合は、見直したい箇所を確認し、該当ステップに戻る
★★★ AI must never click the transmission button ★★★ ★★★ Do not perform any browser operations until user selects "Transmission completed" ★★★
★ Wait for user operation — Pause browser operation
Display the following using AskUserQuestion:
Pre-transmission declaration content confirmation page is displayed.
Please confirm the above contents.

If there are no issues, click the "Execute transmission" button on the screen
with your own operation.

Please select "Transmission completed" once transmission is done.
  • Options: "Transmission completed" / "Want to review input contents"
  • If "Want to review input contents" is selected, confirm location to review and return to applicable step

6-4: 送信後の処理(Claude 再開)

6-4: Post-Transmission Processing (Resume Claude)

ユーザーが「送信完了」を選択したら:
  1. 受付番号の記録 — 画面から受付番号を読み取って記録する
  2. 受信通知の確認 — メッセージボックスで受信通知を確認する
  3. 消費税の申告 — 消費税の申告が必要な場合はステップ6.5 に進む。不要な場合はステップ7 に進む
Once user selects "Transmission completed":
  1. Record acceptance number — Read and record acceptance number from screen
  2. Confirm reception notification — Confirm reception notification in message box
  3. Consumption tax declaration — Proceed to Step 6.5 if consumption tax declaration is required. Proceed to Step 7 if not required

注意事項

Notes

  • 送信後の修正は「修正申告」として再提出が必要
  • ★★★ 送信操作は必ずユーザーの手動操作で行う — エージェントが送信ボタンを自動クリックすることは絶対に禁止 ★★★
  • Corrections after transmission require re-submission as an "amended return"
  • ★★★ Transmission must always be done manually by the user — Agent must never automatically click the transmission button ★★★

ステップ6.5: 消費税の電子署名と送信(該当者のみ)

Step 6.5: Digital Signature and Transmission for Consumption Tax (If applicable)

消費税の申告が必要な場合、所得税の送信完了後に消費税コーナーで申告書を作成する(ステップ4)。 消費税の入力・確認が完了したら、以下の送信プロトコルに従う。
If consumption tax declaration is required, create return form in consumption tax corner after income tax transmission is completed (Step 4). Once input and confirmation of consumption tax are complete, follow the transmission protocol below.

6.5-1: 消費税の送信フェーズに進む前の確認

6.5-1: Confirmation Before Proceeding to Consumption Tax Transmission Phase

消費税の計算結果確認(ac0300)と納税地等の入力が完了した時点で、以下を実行する。
★ ユーザー確認待ち — 明示的な指示なく電子署名・送信に進んではならない
AskUserQuestion で以下を表示する:
消費税の申告内容の入力と確認が完了しました。

電子署名・送信に進む前に、入力データを .data ファイルとして保存することを強く推奨します。
画面上部の「入力データの一時保存」ボタンをクリックし、ファイルをダウンロードしてください。

次の操作を選択してください。
  • 選択肢:
    • 「電子署名・送信に進む」→ 6.5-2 へ
    • 「入力内容を見直す」→ 見直したい箇所を確認し、該当ステップに戻る
    • 「ここで中断する」→ 中断・再開プロトコルの中断手順に従い終了する
重要: ユーザーが「電子署名・送信に進む」を明示的に選択するまで、絶対に送信フェーズに進まないこと。
Once consumption tax calculation result confirmation (ac0300) and payment location input are complete, execute the following.
★ Wait for user confirmation — Do not proceed to digital signature and transmission without explicit instruction
Display the following using AskUserQuestion:
Input and confirmation of consumption tax declaration contents are complete.

We strongly recommend saving the input data as a .data file before proceeding to digital signature and transmission.
Click the "Temporarily save input data" button at the top of the screen and download the file.

Please select the next operation.
  • Options:
    • "Proceed to digital signature and transmission" → Proceed to 6.5-2
    • "Review input contents" → Confirm location to review and return to applicable step
    • "Stop here" → Follow interruption procedure in Interruption/Resumption Protocol and exit
Important: Do not proceed to transmission phase until user explicitly selects "Proceed to digital signature and transmission".

6.5-2: 電子署名(ユーザーの手動操作)

6.5-2: Digital Signature (User Manual Operation)

マイナンバーカードで電子署名する。
★ ユーザー操作待ち — ブラウザ操作を一時停止
AskUserQuestion で以下を表示する:
消費税の電子署名の画面に進みます。
マイナンバーカードで電子署名を行ってください。

署名が完了したら「署名完了」を選択してください。
  • 選択肢: 「署名完了」 / 「署名で問題が発生した」
  • ユーザーが「署名完了」を選択するまで、一切のブラウザ操作を行わない
Digitally sign with My Number Card.
★ Wait for user operation — Pause browser operation
Display the following using AskUserQuestion:
Proceeding to consumption tax digital signature screen.
Perform digital signature with your My Number Card.

Please select "Signature completed" once signature is done.
  • Options: "Signature completed" / "Problem occurred during signature"
  • Do not perform any browser operations until user selects "Signature completed"

6.5-3: 送信前確認ページでの一次確認

6.5-3: Primary Confirmation on Pre-Transmission Confirmation Page

電子署名完了後、送信前の最終確認ページが表示される。
  1. ブラウザ上の確認ページの内容を読み取る
  2. 主要項目をユーザーに報告する(課税標準額・消費税額・差引税額・地方消費税・合計納付税額など)
  3. shinkoku の計算結果との照合結果を報告する
After digital signature is completed, final pre-transmission confirmation page is displayed.
  1. Read contents of confirmation page on browser
  2. Report main items to user (Tax base amount, consumption tax amount, net tax amount, local consumption tax, total payment amount, etc.)
  3. Report comparison results with shinkoku calculation results

6.5-4: ブラウザ操作の一時停止(送信はユーザー操作)

6.5-4: Pause Browser Operation (User Manually Transmits)

★★★ 絶対に AI が送信ボタンをクリックしてはならない ★★★ ★★★ ユーザーが「送信完了」を選択するまで、一切のブラウザ操作を行わない ★★★
★ ユーザー操作待ち — ブラウザ操作を一時停止
AskUserQuestion で以下を表示する:
消費税の送信前確認ページが表示されています。
上記の内容をご確認ください。

問題がなければ、ご自身の操作で画面上の「送信を実行する」ボタンを
クリックしてください。

送信が完了したら「送信完了」を選択してください。
  • 選択肢: 「送信完了」 / 「入力内容を見直したい」
  • 「入力内容を見直したい」が選ばれた場合は、見直したい箇所を確認し、該当ステップに戻る
★★★ AI must never click the transmission button ★★★ ★★★ Do not perform any browser operations until user selects "Transmission completed" ★★★
★ Wait for user operation — Pause browser operation
Display the following using AskUserQuestion:
Consumption tax pre-transmission confirmation page is displayed.
Please confirm the above contents.

If there are no issues, click the "Execute transmission" button on the screen
with your own operation.

Please select "Transmission completed" once transmission is done.
  • Options: "Transmission completed" / "Want to review input contents"
  • If "Want to review input contents" is selected, confirm location to review and return to applicable step

6.5-5: 送信後の処理(Claude 再開)

6.5-5: Post-Transmission Processing (Resume Claude)

ユーザーが「送信完了」を選択したら:
  1. 受付番号の記録 — 画面から受付番号を読み取って記録する
  2. 受信通知の確認 — メッセージボックスで受信通知を確認する
  3. ステップ7 の .data ファイル保存案内に進む

Once user selects "Transmission completed":
  1. Record acceptance number — Read and record acceptance number from screen
  2. Confirm reception notification — Confirm reception notification in message box
  3. Proceed to Step 7 guide to save .data file

ステップ7: .data ファイルの保存案内

Step 7: Guide to Save .data File

作成コーナーでは申告データを
.data
ファイルとして保存できる。
Declaration data can be saved as a
.data
file in the preparation corner.

送信後の .data ファイル再保存(推奨)

Re-save .data File After Transmission (Recommended)

送信完了後の
.data
ファイルには受付番号・送信日時等の追加情報が含まれる。 ステップ5.5 で保存済みであっても、送信後に改めて .data ファイルを再保存することを推奨する。
AskUserQuestion で以下を表示する:
送信が完了しました。送信後の .data ファイルには受付番号等の情報が追加されています。
「入力データを保存する」で .data ファイルを再度ダウンロードすることを推奨します。

ダウンロードが完了したら「ダウンロード済み」を選択してください。
  • 選択肢: 「ダウンロード済み」 / 「スキップ」
The
.data
file after transmission includes additional information such as acceptance number and transmission date/time. Even if saved in Step 5.5, we recommend re-saving the .data file after transmission.
Display the following using AskUserQuestion:
Transmission is complete. The .data file after transmission includes information such as acceptance number.
We recommend re-downloading the .data file via "Save input data".

Please select "Downloaded" once download is complete.
  • Options: "Downloaded" / "Skip"

.data ファイルの用途

Uses of .data File

  • .data
    ファイルがあれば、次回は「保存データを利用して作成」から途中再開できる
  • 控えとしても有用(来年の申告時に前年データとして参照可能)
  • 修正申告が必要になった場合、
    .data
    ファイルから入力データを復元できる

  • If you have a .data file, you can resume from the middle next time via "Create using saved data"
  • Useful as a copy (can be referenced as previous year's data during next year's declaration)
  • If amended return is required, input data can be restored from .data file

技術的な知見

Technical Insights

SPA構造

SPA Structure

  • jQuery 3 + jQuery UI ベース
  • ページ遷移はフォーム POST(
    document.forms[formName].submit()
  • ハッシュ
    #bsctrl
    (決算書コーナー)/
    #bbctrl
    (所得税コーナー)はページ管理用
  • <input type="button">
    が多用されており、
    id="input_xxx"
    で JS
    .click()
    操作
  • Based on jQuery 3 + jQuery UI
  • Page transitions are via form POST (
    document.forms[formName].submit()
    )
  • Hashes
    #bsctrl
    (Financial Statement Corner) /
    #bbctrl
    (Income Tax Corner) are for page management
  • <input type="button">
    is frequently used, and JS
    .click()
    operation is performed with
    id="input_xxx"

URL体系

URL System

コーナーURL パターン
共通(認証等)
/kyoutu/ky/sm/***
決算書
/kessan/ac/***
所得税
/r7/syotoku/***
消費税(共通)
/syouhi/ac****
消費税(2割特例)
/syouhi/at****
消費税(一般課税)
/syouhi/ai****
消費税(簡易課税)
/syouhi/ak****
CornerURL Pattern
Common (authentication, etc.)
/kyoutu/ky/sm/***
Financial Statement
/kessan/ac/***
Income Tax
/r7/syotoku/***
Consumption Tax (Common)
/syouhi/ac****
Consumption Tax (20% Special Provision)
/syouhi/at****
Consumption Tax (Standard Taxation)
/syouhi/ai****
Consumption Tax (Simplified Taxation)
/syouhi/ak****

主要ナビゲーション関数

Main Navigation Functions

  • doSubmitCSW0100(qrCodeReadingFlag, reportType, url)
    — 認証方法選択
  • doSubmitCMW0900(zeimokuType, year)
    — 申告書種類選択(1=所得税, 2=決算書, 3=消費税, 4=贈与税)
  • doSubmitCSW0100(qrCodeReadingFlag, reportType, url)
    — Select authentication method
  • doSubmitCMW0900(zeimokuType, year)
    — Select return form type (1=Income Tax, 2=Financial Statement, 3=Consumption Tax, 4=Gift Tax)

確認ダイアログ

Confirmation Dialogs

コード内容対応
KS-W90011入力データが初期化されるOK で続行
KS-W90006入力データをクリアするOK で続行
KS-W10035印刷を確認したかOK で続行
KS-E10089e-Tax送信が必要(65万円控除)e-Tax ルートで再実行
KS-E10001必須入力チェック入力漏れを修正
KS-E40003B/S 資産期末合計 ≠ 負債期末合計金額を修正
CodeContentResponse
KS-W90011Input data will be initializedContinue with OK
KS-W90006Clear input dataContinue with OK
KS-W10035Have you confirmed printing?Continue with OK
KS-E10089e-Tax filing is required (¥650,000 deduction)Re-execute via e-Tax route
KS-E10001Required input checkCorrect input omissions
KS-E40003B/S total assets at end of period ≠ total liabilities at end of periodCorrect amounts

終了ダイアログフロー

Exit Dialog Flow

消費税コーナー終了時は2段階のダイアログが表示される:
  1. #otherTax
    — 「他の申告書等を作成しますか?」
  2. #end
    — 「終了してもよろしいですか?」
※ 書面提出選択時はサーベイダイアログが毎回表示される(セッション間で記憶されない)
Two-stage dialogs are displayed when exiting the consumption tax corner:
  1. #otherTax
    — "Do you want to create other return forms?"
  2. #end
    — "Are you sure you want to exit?"
Note: A survey dialog is displayed every time when paper filing is selected (not remembered between sessions)

ネイティブダイアログの検知と対処

Detection and Handling of Native Dialogs

Claude in Chrome は
alert()
/
confirm()
/
prompt()
によるネイティブダイアログを検知できない。 ダイアログが表示されている間、ブラウザの DOM 操作はブロックされるため、エージェントの操作が無応答になる。
Claude in Chrome cannot detect native dialogs via
alert()
/
confirm()
/
prompt()
. While dialog is displayed, DOM operations on browser are blocked, so agent operations become unresponsive.

検知ヒューリスティック

Detection Heuristics

ボタンクリック後に以下の状態が続く場合、ネイティブダイアログが表示されている可能性がある:
  • URL が変化しない
  • DOM の内容が変化しない(新しい画面に遷移しない)
  • ボタンのクリックが何も起こさないように見える
A native dialog may be displayed if the following state continues after button click:
  • URL does not change
  • DOM contents do not change (no transition to new screen)
  • Button click appears to do nothing

対処手順

Handling Procedure

  1. ダイアログの可能性を検知したら、AskUserQuestion で以下を表示する:
ボタンをクリックしましたが、画面が遷移しません。
ブラウザにポップアップ(確認ダイアログ)が表示されていませんか?

表示されている場合は、ダイアログの内容(コード番号がある場合はそれも)を教えてください。
  • 選択肢: 「ダイアログが表示されている」 / 「ダイアログは表示されていない」
  1. ダイアログが表示されている場合:
    • ユーザーにダイアログのメッセージ内容を確認する
    • 既知のコード(上記「確認ダイアログ」テーブルの KS-W*, KS-E* 等)に該当するか照合する
    • KS-W 系(警告): ユーザーに「OK」をクリックするよう案内
    • KS-E 系(エラー): エラー内容に応じた修正を案内
    • 不明なダイアログ: ユーザーにメッセージ全文を共有してもらい、対処を判断
  2. ダイアログが表示されていない場合:
    • ネットワークエラーやページ読み込み中の可能性を調査する
    • ページの再読み込みを試みる
  1. If dialog possibility is detected, display the following using AskUserQuestion:
Button was clicked, but screen did not transition.
Is a pop-up (confirmation dialog) displayed in your browser?

If displayed, please tell us the dialog contents (including code number if any).
  • Options: "Dialog is displayed" / "Dialog is not displayed"
  1. If dialog is displayed:
    • Confirm dialog message content with user
    • Check if it corresponds to known codes (KS-W*, KS-E*, etc. in "Confirmation Dialogs" table above)
    • KS-W series (warning): Guide user to click "OK"
    • KS-E series (error): Guide correction according to error content
    • Unknown dialog: Ask user to share full message and determine handling
  2. If dialog is not displayed:
    • Investigate possibility of network error or page loading
    • Try reloading page

ダイアログが発生しやすい操作

Operations Where Dialogs Are Likely to Occur

操作想定ダイアログステップ
「次へ進む」クリック全般KS-E10001(必須入力チェック)2, 3, 4
65万円控除の選択KS-E10089(e-Tax送信必須)2
B/S 入力後の「次へ」KS-E40003(資産≠負債)2
決算書完了→所得税遷移KS-W10035(印刷確認)2→3
消費税コーナー終了
#otherTax
+
#end
(2段階)
4
データクリア・初期化操作KS-W90011, KS-W90006全般
OperationExpected DialogStep
General "Proceed to next" clicksKS-E10001 (Required input check)2, 3, 4
Selection of ¥650,000 deductionKS-E10089 (e-Tax filing required)2
"Next" after B/S inputKS-E40003 (Assets ≠ Liabilities)2
Financial statement completion → Income tax transitionKS-W10035 (Print confirmation)2→3
Consumption tax corner exit
#otherTax
+
#end
(two-stage)
4
Data clear/initialization operationsKS-W90011, KS-W90006General

環境チェック(参考)

Environment Check (Reference)

確定申告書等作成コーナーの推奨環境:
  • Windows 11 + Chrome / Edge
  • macOS + Safari
Linux は公式非対応。OS 検出は 2層 で行われるため、回避にも2層の偽装が必要:
  1. クライアントサイド検出: CC-AA-024 の画面遷移時に
    termnalInfomationCheckOS_myNumberLinkage()
    navigator.platform
    /
    navigator.userAgent
    を検査し、Linux 環境では
    isTransition=false
    となり QR コード認証画面(CC-AA-440)への遷移がブロックされる。
  2. サーバーサイド OS ベイク: サーバーが HTTP リクエストの
    User-Agent
    /
    sec-ch-ua-platform
    ヘッダ から OS を判定し、レスポンス内の
    getClientOS()
    関数に
    const os = "Linux"
    のようにハードコードする (サーバーサイドレンダリング)。
    addInitScript
    による navigator プロパティ偽装ではこのベイク値は変わらない。 CC-AA-440 の
    displayQrcode()
    でも
    getClientOS()
    が呼ばれ、
    oStUseType
    を決定する (Win=
    '3'
    , Mac=
    '4'
    )。Linux だと
    undefined
    になり QR コードが描画されない。
Recommended environment for Tax Return Preparation Corner:
  • Windows 11 + Chrome / Edge
  • macOS + Safari
Linux is officially unsupported. OS detection is performed in two layers, so two layers of spoofing are required for circumvention:
  1. Client-side detection:
    termnalInfomationCheckOS_myNumberLinkage()
    inspects
    navigator.platform
    /
    navigator.userAgent
    during screen transition to CC-AA-024, and
    isTransition=false
    in Linux environment, blocking transition to QR code authentication screen (CC-AA-440).
  2. Server-side OS bake: Server determines OS from
    User-Agent
    /
    sec-ch-ua-platform
    headers of HTTP request, and hardcodes
    const os = "Linux"
    in
    getClientOS()
    function in response (server-side rendering). Navigator property spoofing via
    addInitScript
    does not change this bake value.
    getClientOS()
    is also called in
    displayQrcode()
    for CC-AA-440 to determine
    oStUseType
    (Win=
    '3'
    , Mac=
    '4'
    ). If Linux, it becomes
    undefined
    and QR code is not rendered.

etax-stealth.js
の2層偽装

Two-Layer Spoofing with
etax-stealth.js

PLAYWRIGHT_MCP_INIT_SCRIPT
環境変数で
etax-stealth.js
を指定して回避可能:
bash
PLAYWRIGHT_MCP_INIT_SCRIPT=skills/e-tax/scripts/etax-stealth.js \
  playwright-cli -s=etax open https://www.keisan.nta.go.jp/ --headed --browser=chrome
層 1: navigator プロパティ偽装
addInitScript
で実行、ページ読み込み前)
プロパティ偽装値
navigator.platform
'Win32'
navigator.userAgent
Windows Chrome 131 UA
navigator.userAgentData
Windows Chrome Client Hints
navigator.webdriver
false
navigator.plugins
Chrome 標準プラグイン
navigator.languages
['ja', 'en-US', 'en']
層 2: サーバーベイク関数のパッチ
DOMContentLoaded
で実行、ページスクリプト後)
パッチ対象偽装値目的
getClientOS()
'Windows'
サーバーベイク値の上書き
getClientOSVersionAsync()
'Windows 11'
OS バージョン判定の回避
isRecommendedOsAsEtaxAsync()
true
推奨 OS 判定の回避
isRecommendedBrowserAsEtaxAsync()
'OK'
推奨ブラウザ判定の回避
Circumvention is possible by specifying
etax-stealth.js
in the
PLAYWRIGHT_MCP_INIT_SCRIPT
environment variable:
bash
PLAYWRIGHT_MCP_INIT_SCRIPT=skills/e-tax/scripts/etax-stealth.js \\
  playwright-cli -s=etax open https://www.keisan.nta.go.jp/ --headed --browser=chrome
Layer 1: Navigator Property Spoofing (Executed via
addInitScript
, before page load)
PropertySpoofed Value
navigator.platform
'Win32'
navigator.userAgent
Windows Chrome 131 UA
navigator.userAgentData
Windows Chrome Client Hints
navigator.webdriver
false
navigator.plugins
Chrome standard plugins
navigator.languages
['ja', 'en-US', 'en']
Layer 2: Patch for Server-Baked Functions (Executed on
DOMContentLoaded
, after page script)
Patch TargetSpoofed ValuePurpose
getClientOS()
'Windows'
Overwrite server-baked value
getClientOSVersionAsync()
'Windows 11'
Circumvent OS version determination
isRecommendedOsAsEtaxAsync()
true
Circumvent recommended OS determination
isRecommendedBrowserAsEtaxAsync()
'OK'
Circumvent recommended browser determination

トラブルシューティング: QR コードが表示されない

Troubleshooting: QR Code Not Displayed

CC-AA-440 で QR コードが表示されない場合、
displayQrcode()
内で
getClientOS()
'Linux'
等を返し、
oStUseType
undefined
になっている可能性がある。
確認方法: ブラウザコンソールで
getClientOS()
の戻り値を確認。
'Windows'
でなければパッチが適用されていない。
手動対処(Playwright CLI の場合):
bash
playwright-cli -s=etax run-code 'window.getClientOS = function() { return "Windows"; }; displayQrcode();'
If QR code is not displayed in CC-AA-440,
getClientOS()
may return
'Linux'
or similar in
displayQrcode()
, making
oStUseType
undefined
.
Confirmation Method: Check return value of
getClientOS()
in browser console. If not
'Windows'
, patch is not applied.
Manual Handling (for Playwright CLI):
bash
playwright-cli -s=etax run-code 'window.getClientOS = function() { return "Windows"; }; displayQrcode();'

検証済み画面遷移フロー

Verified Screen Transition Flow

CC-AA-010 → CC-AE-090 → CC-AE-600 → CC-AA-024 → CC-AA-440(QR 表示確認済み)
詳細は
docs/wsl-os-detection-workaround.md
を参照。

CC-AA-010 → CC-AE-090 → CC-AE-600 → CC-AA-024 → CC-AA-440 (QR display confirmed)
Refer to
docs/wsl-os-detection-workaround.md
for details.

引継書の出力

Handover Document Output

全ステップ完了後、以下のファイルを Write ツールで出力する。
After all steps are completed, output the following files using Write tool.

ステップ別ファイルの出力

Output Step-by-Step Files

.shinkoku/progress/10-etax.md
に以下の形式で出力する:
---
step: 10
skill: e-tax
status: completed
completed_at: "{当日日付 YYYY-MM-DD}"
fiscal_year: {tax_year}
---
Output to
.shinkoku/progress/10-etax.md
in the following format:
---
step: 10
skill: e-tax
status: completed
completed_at: "{Current date YYYY-MM-DD}"
fiscal_year: {tax_year}
---

e-Tax 電子申告の結果

Results of e-Tax Electronic Filing

提出方法

Submission Method

  • 確定申告書等作成コーナー(Claude in Chrome 入力代行)
  • Tax Return Preparation Corner (Claude in Chrome input agency)

税額サマリー

Tax Amount Summary

  • 事業所得: {金額}円
  • 課税所得: {金額}円
  • 所得税額: {金額}円
  • 申告納税額: {金額}円({納付/還付})
  • 消費税納付額: {金額}円(該当者のみ)
  • Business income: {Amount} yen
  • Taxable income: {Amount} yen
  • Income tax amount: {Amount} yen
  • Declared tax payment amount: {Amount} yen ({Payment/Refund})
  • Consumption tax payment amount: {Amount} yen (if applicable)

送信結果

Transmission Results

  • 受付番号: {受付番号}
  • 送信日時: {日時}
  • Acceptance number: {Acceptance number}
  • Transmission date and time: {Date and time}

次のステップ

Next Step

/submit で提出後のチェックリストを確認する
undefined
Check post-submission checklist with
/submit
undefined

進捗サマリーの更新

Update Progress Summary

.shinkoku/progress/progress-summary.md
を更新する(存在しない場合は新規作成):
  • YAML frontmatter: fiscal_year、last_updated(当日日付)、current_step: e-tax
  • テーブル: 全ステップの状態を更新(e-tax を completed に)

Update
.shinkoku/progress/progress-summary.md
(create new if it does not exist):
  • YAML frontmatter: fiscal_year, last_updated (current date), current_step: e-tax
  • Table: Update status of all steps (set e-tax to completed)

免責事項

Disclaimer

  • 確定申告書等作成コーナーの画面構成・フォーム要素は国税庁の更新により変更される可能性がある
  • Claude in Chrome の入力代行はユーザーの目視確認を前提とする — 自動送信は行わない
  • マイナンバーカードの操作(電子署名)はユーザーの手動操作が必要
  • 最終的な申告内容は税理士等の専門家に確認することを推奨する
  • Screen configuration and form elements of the Tax Return Preparation Corner may change due to NTA updates
  • Claude in Chrome input agency is based on user visual confirmation — No automatic transmission is performed
  • Manual operation by user is required for My Number Card operations (digital signature)
  • We recommend having final declaration contents confirmed by a tax professional such as a tax accountant

調査資料

Research Materials

詳細なセレクタ情報・スクリーンショットは
skills/e-tax/research/
ディレクトリを参照:
  • 00-screen-flow-summary.md
    — 画面遷移マップ
  • 01
    05
    — 認証フロー画面
  • 06
    14
    — 決算書コーナー画面
  • 30
    41
    — 所得税コーナー画面
  • 50
    55
    — 消費税コーナー画面(初期調査)
  • 84
    87
    — 消費税 2割特例(条件判定、売上入力、計算結果)
  • 89
    93
    — 消費税 簡易課税(条件判定、事業区分、売上入力、控除方式、計算結果)
  • 94
    98
    — 消費税 一般課税(条件判定、所得区分、売上入力、決算額テーブル、計算結果)
Refer to
skills/e-tax/research/
directory for detailed selector information and screenshots:
  • 00-screen-flow-summary.md
    — Screen transition map
  • 01
    ~
    05
    — Authentication flow screens
  • 06
    ~
    14
    — Financial Statement Corner screens
  • 30
    ~
    41
    — Income Tax Corner screens
  • 50
    ~
    55
    — Consumption Tax Corner screens (initial research)
  • 84
    ~
    87
    — Consumption Tax 20% Special Provision (condition determination, sales input, calculation results)
  • 89
    ~
    93
    — Consumption Tax Simplified Taxation (condition determination, business category, sales input, credit method, calculation results)
  • 94
    ~
    98
    — Consumption Tax Standard Taxation (condition determination, income category, sales input, settlement amount table, calculation results) ",